Commit 15c5dc12 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

avifil32: Use HeapAlloc instead of Local Alloc.

parent 4fa92f65
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
#include "winbase.h" #include "winbase.h"
#include "wingdi.h" #include "wingdi.h"
#include "winuser.h" #include "winuser.h"
#include "windowsx.h"
#include "vfw.h" #include "vfw.h"
#include "wine/debug.h" #include "wine/debug.h"
...@@ -81,9 +80,9 @@ HRESULT WriteExtraChunk(LPEXTRACHUNKS extra,FOURCC ckid,LPVOID lpData, ...@@ -81,9 +80,9 @@ HRESULT WriteExtraChunk(LPEXTRACHUNKS extra,FOURCC ckid,LPVOID lpData,
assert(size > 0); assert(size > 0);
if (extra->lp) 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 else
lp = (LPDWORD)GlobalAllocPtr(GHND, size + 2 * sizeof(DWORD)); lp = HeapAlloc(GetProcessHeap(), 0, size + 2 * sizeof(DWORD));
if (lp == NULL) if (lp == NULL)
return AVIERR_MEMORY; return AVIERR_MEMORY;
...@@ -116,10 +115,10 @@ HRESULT ReadChunkIntoExtra(LPEXTRACHUNKS extra,HMMIO hmmio,MMCKINFO *lpck) ...@@ -116,10 +115,10 @@ HRESULT ReadChunkIntoExtra(LPEXTRACHUNKS extra,HMMIO hmmio,MMCKINFO *lpck)
cb = lpck->cksize + 2 * sizeof(DWORD); cb = lpck->cksize + 2 * sizeof(DWORD);
cb += (cb & 1); cb += (cb & 1);
if (extra->lp != NULL) { if (extra->lp != NULL)
lp = (LPDWORD)GlobalReAllocPtr(extra->lp, extra->cb + cb, GHND); lp = HeapReAlloc(GetProcessHeap(), 0, extra->lp, extra->cb + cb);
} else else
lp = (LPDWORD)GlobalAllocPtr(GHND, cb); lp = HeapAlloc(GetProcessHeap(), 0, cb);
if (lp == NULL) if (lp == NULL)
return AVIERR_MEMORY; return AVIERR_MEMORY;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment