From a4b816c7529a15b906f5d192120da67742a80a6c Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Sat, 11 Mar 2006 14:41:16 +0900 Subject: [PATCH] avifil32: Use HeapAlloc/Free instead of LocalAlloc/Free. --- dlls/avifil32/tmpfile.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/dlls/avifil32/tmpfile.c b/dlls/avifil32/tmpfile.c index 5968103c86..95f691ff6b 100644 --- a/dlls/avifil32/tmpfile.c +++ b/dlls/avifil32/tmpfile.c @@ -26,7 +26,6 @@ #include "winuser.h" #include "winnls.h" #include "winerror.h" -#include "windowsx.h" #include "mmsystem.h" #include "vfw.h" @@ -77,7 +76,7 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, PAVISTREAM *ppStreams) { ITmpFileImpl *tmpFile; int i; - tmpFile = LocalAlloc(LPTR, sizeof(ITmpFileImpl)); + tmpFile = HeapAlloc(GetProcessHeap(), 0, sizeof(ITmpFileImpl)); if (tmpFile == NULL) return NULL; @@ -86,9 +85,9 @@ PAVIFILE AVIFILE_CreateAVITempFile(int nStreams, PAVISTREAM *ppStreams) { memset(&tmpFile->fInfo, 0, sizeof(tmpFile->fInfo)); tmpFile->fInfo.dwStreams = nStreams; - tmpFile->ppStreams = LocalAlloc(LPTR, nStreams * sizeof(PAVISTREAM)); + tmpFile->ppStreams = HeapAlloc(GetProcessHeap(), 0, nStreams * sizeof(PAVISTREAM)); if (tmpFile->ppStreams == NULL) { - LocalFree((HLOCAL)tmpFile); + HeapFree(GetProcessHeap(), 0, tmpFile); return NULL; } @@ -177,7 +176,7 @@ static ULONG WINAPI ITmpFile_fnRelease(IAVIFile *iface) } } - LocalFree((HLOCAL)This); + HeapFree(GetProcessHeap(), 0, This); return 0; }