More checks when loading the driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog:
	wine/dlls/winmm/lolvldrv.c: MMDRV_Install
	Check for failing DRIVER_FindFromHDrvr
-- 
Uwe Bonnes                bon@elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
Index: wine/dlls/winmm/lolvldrv.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/lolvldrv.c,v
retrieving revision 1.44
diff -u -r1.44 lolvldrv.c
--- wine/dlls/winmm/lolvldrv.c	15 Mar 2003 00:54:12 -0000	1.44
+++ wine/dlls/winmm/lolvldrv.c	1 May 2003 22:50:58 -0000
@@ -612,6 +612,11 @@
     }
 
     d = DRIVER_FindFromHDrvr(lpDrv->hDriver);
+    if (!d) {
+	WARN("Couldn't open driver '%s'\n", drvFileName);
+	return FALSE;
+    }
+	
     lpDrv->bIs32 = (d->dwFlags & WINE_GDF_16BIT) ? FALSE : TRUE;
 
     /* Then look for xxxMessage functions */


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux