Author: dgorbachev
Date: Fri May 11 18:12:40 2007
New Revision: 26699
URL:
http://svn.reactos.org/svn/reactos?rev=26699&view=rev
Log:
Check result of DRIVER_FindFromHDrvr().
Modified:
trunk/reactos/dll/win32/winmm/lolvldrv.c
Modified: trunk/reactos/dll/win32/winmm/lolvldrv.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/winmm/lolvldrv.c…
==============================================================================
--- trunk/reactos/dll/win32/winmm/lolvldrv.c (original)
+++ trunk/reactos/dll/win32/winmm/lolvldrv.c Fri May 11 18:12:40 2007
@@ -645,7 +645,11 @@
return FALSE;
}
- d = DRIVER_FindFromHDrvr(lpDrv->hDriver);
+ if (!(d = DRIVER_FindFromHDrvr(lpDrv->hDriver))) {
+ CloseDriver(lpDrv->hDriver, 0, 0);
+ WARN("Couldn't get the WINE internal structure for driver '%s'\n",
drvFileName);
+ return FALSE;
+ }
lpDrv->bIs32 = (d->dwFlags & WINE_GDF_16BIT) ? FALSE : TRUE;
/* Then look for xxxMessage functions */