mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:32:56 +00:00
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:
parent
c36fc14394
commit
973d0cfabc
1 changed files with 2 additions and 2 deletions
|
@ -1200,10 +1200,10 @@ pGetSecurityInfoCheck(SECURITY_INFORMATION SecurityInfo,
|
||||||
if ((SecurityInfo & OWNER_SECURITY_INFORMATION) &&
|
if ((SecurityInfo & OWNER_SECURITY_INFORMATION) &&
|
||||||
ppsidOwner != NULL)
|
ppsidOwner != NULL)
|
||||||
{
|
{
|
||||||
ppsidOwner = NULL;
|
*ppsidOwner = NULL;
|
||||||
}
|
}
|
||||||
if ((SecurityInfo & GROUP_SECURITY_INFORMATION) &&
|
if ((SecurityInfo & GROUP_SECURITY_INFORMATION) &&
|
||||||
(ppsidGroup) && (*ppsidGroup))
|
ppsidGroup != NULL)
|
||||||
{
|
{
|
||||||
*ppsidGroup = NULL;
|
*ppsidGroup = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue