Revert "advapi32: Free descriptor if it isn't returned from GetSecurityInfo().".
commit72158ac286dfbf5908c2bc281678422469d0653b
authorJames Hawkins <truiken@gmail.com>
Thu, 14 Jan 2010 19:35:09 +0000 (14 11:35 -0800)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 18 Jan 2010 13:15:23 +0000 (18 14:15 +0100)
tree7e094c8f683f039fe13e13f4e1873ead9cb9d0fb
parent539da1b073be3a0c74f82d6b9a0fb00c1f214c14
Revert "advapi32: Free descriptor if it isn't returned from GetSecurityInfo().".

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