Mike McCormack : avifil32: Use HeapAlloc/Free instead of
LocalAlloc/Free.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Mar 13 08:46:37 CST 2006
Module: wine
Branch: refs/heads/master
Commit: a4b816c7529a15b906f5d192120da67742a80a6c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=a4b816c7529a15b906f5d192120da67742a80a6c
Author: Mike McCormack <mike at codeweavers.com>
Date: Sat Mar 11 14:41:16 2006 +0900
avifil32: Use HeapAlloc/Free instead of LocalAlloc/Free.
---
dlls/avifil32/tmpfile.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/dlls/avifil32/tmpfile.c b/dlls/avifil32/tmpfile.c
index 5968103..95f691f 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 n
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 n
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
}
}
- LocalFree((HLOCAL)This);
+ HeapFree(GetProcessHeap(), 0, This);
return 0;
}
More information about the wine-cvs
mailing list