Commit a4b816c7 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

avifil32: Use HeapAlloc/Free instead of LocalAlloc/Free.

parent 8ed1ca3e
......@@ -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;
}
......
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