Another animate control fix

Dmitry Timoshkov dmitry at baikal.ru
Sat Oct 2 23:36:10 CDT 2004


Hello,

here is another animate control fix.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Do not use GlobalFree for a memory returned by LoadResource.

--- cvs/hq/wine/dlls/comctl32/animate.c	Thu Aug 26 02:26:22 2004
+++ wine/dlls/comctl32/animate.c	Sun Oct 03 04:26:46 2004
@@ -119,7 +119,7 @@ static BOOL ANIMATE_LoadResA(ANIMATE_INF
     mminfo.cchBuffer = SizeofResource(hInst, hrsrc);
     infoPtr->hMMio = mmioOpenA(NULL, &mminfo, MMIO_READ);
     if (!infoPtr->hMMio) {
-	GlobalFree((HGLOBAL)lpAvi);
+	FreeResource(infoPtr->hRes);
 	return FALSE;
     }
 






More information about the wine-patches mailing list