advapi32[7/8]: fix GetServiceDisplayName for cchBuffer == 0

Mikolaj Zalewski mikolajz at
Tue Sep 25 22:00:45 CDT 2007

With the current code if one passes 0 as the buffer size it won't be
updated to contain the correct buffer size. The affects e.g. our
GetServieKeyName test. This patch fixes it and simplifies the logic -
the new code passes all the tests, seems correct but is simpler.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0009-advapi32-fix-GetServiceDisplayName-for-cchBuffer-0.txt

More information about the wine-patches mailing list