MCI #2: Use correct pointer to an internal driver description

Dmitry Timoshkov dmitry at baikal.ru
Tue Dec 30 10:47:46 CST 2003


Hello,

Please apply after MCI #1.

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Use correct pointer to an internal driver description.

--- cvs/hq/wine/dlls/winmm/driver.c     2003-11-12 14:44:23.000000000 +0800
+++ wine/dlls/winmm/driver.c    2003-12-30 23:28:23.000000000 +0800
@@ -389,7 +389,7 @@ LRESULT WINAPI CloseDriver(HDRVR hDrvr, 
                     DRIVER_SendMessage(lpDrv0, DRV_CLOSE, 0L, 0L);
                     lpDrv0->d.d32.dwDriverID = 0;
                     DRIVER_RemoveFromList(lpDrv0);
-                    FreeLibrary(lpDrv->d.d32.hModule);
+                    FreeLibrary(lpDrv0->d.d32.hModule);
                     HeapFree(GetProcessHeap(), 0, lpDrv0);
                 }
                 FreeLibrary(lpDrv->d.d32.hModule);






More information about the wine-patches mailing list