From ec48d0128554570ea1569ce0b43e5259e61651b0 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Thu, 22 Jun 2006 20:34:23 +0000 Subject: [PATCH] bugfix from w3seek : bug 1474 : NTMARTA: GetExplicitEntriesFromAcl should return valid information for NULL-ACLs svn path=/trunk/; revision=22507 --- reactos/dll/win32/ntmarta/ntmarta.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/ntmarta/ntmarta.c b/reactos/dll/win32/ntmarta/ntmarta.c index 8295da31598..564fe980624 100644 --- a/reactos/dll/win32/ntmarta/ntmarta.c +++ b/reactos/dll/win32/ntmarta/ntmarta.c @@ -1154,10 +1154,15 @@ AccRewriteGetExplicitEntriesFromAcl(PACL pacl, } else { - *pcCountOfExplicitEntries = 0; - *pListOfExplicitEntries = NULL; + goto EmptyACL; } } + else + { +EmptyACL: + *pcCountOfExplicitEntries = 0; + *pListOfExplicitEntries = NULL; + } /* restore the last error code */ SetLastError(LastErr);