bugfix from w3seek : bug 1474 : NTMARTA: GetExplicitEntriesFromAcl should return...
authorMagnus Olsen <magnus@greatlord.com>
Thu, 22 Jun 2006 20:34:23 +0000 (20:34 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Thu, 22 Jun 2006 20:34:23 +0000 (20:34 +0000)
svn path=/trunk/; revision=22507

reactos/dll/win32/ntmarta/ntmarta.c

index 8295da3..564fe98 100644 (file)
@@ -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);