Fix incorrect use of bytes needed parameter in QueryServiceConfigW
Troy Rollo
wine at troy.rollo.name
Thu Mar 3 20:29:45 CST 2005
In QueryServiceConfigW, there is a test for the number of bytes needed being
greater than *pcbBytesNeeded, which is an output parameter, not an input one.
The comparison should be against cbBufSize. This results in unexpected
failures in that method, and has the potential to generate SEGVs
ChangeLog:
Correct incorrect use of arguments to QueryServiceConfigW.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qsc.diff
Type: text/x-diff
Size: 794 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050304/814ee7df/qsc.bin
More information about the wine-patches
mailing list