Make QueryServiceConfigW return an empty string for empty dependencies

Troy Rollo wine at
Thu Mar 3 20:54:34 CST 2005

QueryServiceConfigW currently returns a NULL pointer for lpDependencies when 
there are no dependencies. The documentation states that an empty string has 
the same meaning, and at least one application (an MSIEXEC.EXE from the 
Office XP CD) will SEGV if this is NULL. Using the empty string avoids this.

 Return an empty string for service dependencies when there are no
 dependencies, rather than a NULL pointer, which causes some apps
 to SEGV.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qsc2.diff
Type: text/x-diff
Size: 1036 bytes
Desc: not available
Url :

More information about the wine-patches mailing list