Revert "advapi32: Free descriptor if it isn't returned from GetSecurityInfo()."

James Hawkins truiken at gmail.com
Thu Jan 14 13:35:09 CST 2010


This reverts commit dbd76575ef8353484afa0b0d2da95760c26f34fe.

According to MSDN, ppSecurityDescriptor must not be NULL if any of the
SID or ACL parameters are non-NULL.  This is wrong, and native
GetSecurityInfo will happily return those pointers, leaving one unable
to free the original security descriptor.
---
 dlls/advapi32/security.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Revert-advapi32-Free-descriptor-if-it-isn-t-returned.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20100114/74354125/attachment.bin>


More information about the wine-patches mailing list