Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
15c5dc12
Commit
15c5dc12
authored
Mar 11, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Mar 13, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avifil32: Use HeapAlloc instead of Local Alloc.
parent
4fa92f65
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
extrachunk.c
dlls/avifil32/extrachunk.c
+6
-7
No files found.
dlls/avifil32/extrachunk.c
View file @
15c5dc12
...
...
@@ -23,7 +23,6 @@
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "windowsx.h"
#include "vfw.h"
#include "wine/debug.h"
...
...
@@ -81,9 +80,9 @@ HRESULT WriteExtraChunk(LPEXTRACHUNKS extra,FOURCC ckid,LPVOID lpData,
assert
(
size
>
0
);
if
(
extra
->
lp
)
lp
=
(
LPDWORD
)
GlobalReAllocPtr
(
extra
->
lp
,
extra
->
cb
+
size
+
2
*
sizeof
(
DWORD
),
GHND
);
lp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
extra
->
lp
,
extra
->
cb
+
size
+
2
*
sizeof
(
DWORD
)
);
else
lp
=
(
LPDWORD
)
GlobalAllocPtr
(
GHND
,
size
+
2
*
sizeof
(
DWORD
));
lp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
+
2
*
sizeof
(
DWORD
));
if
(
lp
==
NULL
)
return
AVIERR_MEMORY
;
...
...
@@ -116,10 +115,10 @@ HRESULT ReadChunkIntoExtra(LPEXTRACHUNKS extra,HMMIO hmmio,MMCKINFO *lpck)
cb
=
lpck
->
cksize
+
2
*
sizeof
(
DWORD
);
cb
+=
(
cb
&
1
);
if
(
extra
->
lp
!=
NULL
)
{
lp
=
(
LPDWORD
)
GlobalReAllocPtr
(
extra
->
lp
,
extra
->
cb
+
cb
,
GHND
);
}
else
lp
=
(
LPDWORD
)
GlobalAllocPtr
(
GHND
,
cb
);
if
(
extra
->
lp
!=
NULL
)
lp
=
HeapReAlloc
(
GetProcessHeap
(),
0
,
extra
->
lp
,
extra
->
cb
+
cb
);
else
lp
=
HeapAlloc
(
GetProcessHeap
(),
0
,
cb
);
if
(
lp
==
NULL
)
return
AVIERR_MEMORY
;
...
...
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