fix r18639 the right way: don't check a - possibly random - pointer supplied by the caller, also correctly clear the owner SID pointer

svn path=/trunk/; revision=18640
This commit is contained in:
Thomas Bluemel 2005-10-20 17:59:00 +00:00
parent c36fc14394
commit 973d0cfabc

View file

@ -1200,10 +1200,10 @@ pGetSecurityInfoCheck(SECURITY_INFORMATION SecurityInfo,
if ((SecurityInfo & OWNER_SECURITY_INFORMATION) &&
ppsidOwner != NULL)
{
ppsidOwner = NULL;
*ppsidOwner = NULL;
}
if ((SecurityInfo & GROUP_SECURITY_INFORMATION) &&
(ppsidGroup) && (*ppsidGroup))
ppsidGroup != NULL)
{
*ppsidGroup = NULL;
}