advapi32: Accept a NULL lpServiceStatus in ControlService
Paul Chitescu
paulc at voip.null.ro
Wed Jan 9 11:58:48 CST 2008
Changelog:
advapi32: Accept a NULL lpServiceStatus in ControlService
Although undocumented, Windows happily accepts a NULL pointer there.
Other note - QueryServiceStatus should not be called blindly on the caller
provided LPSERVICE_STATUS:
"The service control manager fills in the structure only when ControlService
returns one of the following error codes: NO_ERROR,
ERROR_INVALID_SERVICE_CONTROL, ERROR_SERVICE_CANNOT_ACCEPT_CTRL, or
ERROR_SERVICE_NOT_ACTIVE. Otherwise, the structure is not filled in."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: null_serv_status.patch
Type: text/x-diff
Size: 1556 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080109/b33640f8/attachment.patch
More information about the wine-patches
mailing list