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);