diff --git a/reactos/lib/advapi32/sec/misc.c b/reactos/lib/advapi32/sec/misc.c index 736dfdd3b19..ae1437c6680 100644 --- a/reactos/lib/advapi32/sec/misc.c +++ b/reactos/lib/advapi32/sec/misc.c @@ -1203,7 +1203,7 @@ pGetSecurityInfoCheck(SECURITY_INFORMATION SecurityInfo, ppsidOwner = NULL; } if ((SecurityInfo & GROUP_SECURITY_INFORMATION) && - *ppsidGroup != NULL) + (ppsidGroup) && (*ppsidGroup)) { *ppsidGroup = NULL; }