On Tue, Jul 26, 2011 at 12:46 AM, Andrew Eikum aeikum@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