fix r18639 the right way: don't check a - possibly random - pointer supplied by the caller, also correctly clear the owner SID pointer
Modified: trunk/reactos/lib/advapi32/sec/misc.c
--- trunk/reactos/lib/advapi32/sec/misc.c 2005-10-20 17:48:19 UTC (rev 18639) +++ trunk/reactos/lib/advapi32/sec/misc.c 2005-10-20 17:59:00 UTC (rev 18640) @@ -1200,10 +1200,10 @@
if ((SecurityInfo & OWNER_SECURITY_INFORMATION) && ppsidOwner != NULL) {
- ppsidOwner = NULL;
+ *ppsidOwner = NULL;
} if ((SecurityInfo & GROUP_SECURITY_INFORMATION) &&
- (ppsidGroup) && (*ppsidGroup))
+ ppsidGroup != NULL)
{ *ppsidGroup = NULL; }