diff --git a/reactos/lib/advapi32/sec/misc.c b/reactos/lib/advapi32/sec/misc.c index ae1437c6680..6bd408aec4c 100644 --- a/reactos/lib/advapi32/sec/misc.c +++ b/reactos/lib/advapi32/sec/misc.c @@ -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; }