From 973d0cfabc68d910544136ef63d592cf17a843a8 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Thu, 20 Oct 2005 17:59:00 +0000 Subject: [PATCH] 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 --- reactos/lib/advapi32/sec/misc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }