Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
37386dba
Commit
37386dba
authored
May 17, 2007
by
Juan Lang
Committed by
Alexandre Julliard
May 18, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Don't mix allocation routines.
parent
020bd631
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
ungif.c
dlls/oleaut32/ungif.c
+7
-2
No files found.
dlls/oleaut32/ungif.c
View file @
37386dba
...
...
@@ -65,6 +65,11 @@ static void *ungif_calloc( size_t num, size_t sz )
return
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
num
*
sz
);
}
static
void
*
ungif_realloc
(
void
*
ptr
,
size_t
sz
)
{
return
HeapReAlloc
(
GetProcessHeap
(),
0
,
ptr
,
sz
);
}
static
void
ungif_free
(
void
*
ptr
)
{
HeapFree
(
GetProcessHeap
(),
0
,
ptr
);
...
...
@@ -194,7 +199,7 @@ AddExtensionBlock(SavedImage * New,
if
(
New
->
ExtensionBlocks
==
NULL
)
New
->
ExtensionBlocks
=
ungif_alloc
(
sizeof
(
ExtensionBlock
));
else
New
->
ExtensionBlocks
=
realloc
(
New
->
ExtensionBlocks
,
New
->
ExtensionBlocks
=
ungif_
realloc
(
New
->
ExtensionBlocks
,
sizeof
(
ExtensionBlock
)
*
(
New
->
ExtensionBlockCount
+
1
));
...
...
@@ -387,7 +392,7 @@ DGifGetImageDesc(GifFileType * GifFile) {
}
if
(
GifFile
->
SavedImages
)
{
if
((
GifFile
->
SavedImages
=
realloc
(
GifFile
->
SavedImages
,
if
((
GifFile
->
SavedImages
=
ungif_
realloc
(
GifFile
->
SavedImages
,
sizeof
(
SavedImage
)
*
(
GifFile
->
ImageCount
+
1
)))
==
NULL
)
{
return
GIF_ERROR
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment