Do not use GlobalFree for a memory returned by LoadResource.

This commit is contained in:
Dmitry Timoshkov 2004-10-04 19:29:29 +00:00 committed by Alexandre Julliard
parent 63c6359fcc
commit 5d460f2761
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ static BOOL ANIMATE_LoadResA(ANIMATE_INFO *infoPtr, HINSTANCE hInst, LPSTR lpNam
mminfo.cchBuffer = SizeofResource(hInst, hrsrc);
infoPtr->hMMio = mmioOpenA(NULL, &mminfo, MMIO_READ);
if (!infoPtr->hMMio) {
GlobalFree((HGLOBAL)lpAvi);
FreeResource(infoPtr->hRes);
return FALSE;
}