Don't fall back to OSS when Drivers=""

Mike Hearn mike at navi.cx
Sat Aug 7 06:52:24 CDT 2004


Mike Hearn <mike at navi.cx>
Don't fall back to OSS when Drivers=""

--- dlls/winmm/lolvldrv.c.~1.58.~	2004-06-01 20:40:48.000000000 +0100
+++ dlls/winmm/lolvldrv.c	2004-08-03 22:01:16.795976000 +0100
@@ -731,6 +731,9 @@
     size = sizeof(buffer);
     if (!RegQueryValueExA(hKey, "Drivers", 0, &type, (LPVOID)buffer, &size)) {
 	p1 = buffer;
+        
+	if (!*p1) return TRUE; /* if Drivers="" don't load sound */
+        
 	while (p1) {
 	    p2 = strchr(p1, ';');
 	    if (p2) *p2++ = '\0';





More information about the wine-patches mailing list