[PATCH] mmdevapi: Try loading multiple audio drivers from the registry
Octavian Voicu
octavian.voicu at gmail.com
Mon Jul 25 17:47:45 CDT 2011
On Tue, Jul 26, 2011 at 12:46 AM, Andrew Eikum <aeikum at codeweavers.com> wrote:
+ for(p = driver_name; p; p = next + 1){
+ next = strchrW(p, ',');
+ if(next)
+ *next = '\0';
+
+ if(load_driver(p))
+ return TRUE;
+
+ TRACE("Failed to load driver: %s\n",
wine_dbgstr_w(driver_name));
+ }
This crashes if no driver can be loaded (next will be NULL, then
you'll have p = NULL + 1).
Octavian
More information about the wine-devel
mailing list