mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Do not use GlobalFree for a memory returned by LoadResource.
This commit is contained in:
parent
63c6359fcc
commit
5d460f2761
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user