[ADVAPI32]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 26 Oct 2014 15:59:57 +0000 (15:59 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 26 Oct 2014 15:59:57 +0000 (15:59 +0000)
* Update DeleteAce().
CORE-8540

svn path=/trunk/; revision=65016

reactos/dll/win32/advapi32/wine/security.c

index ed00f03..c138578 100644 (file)
@@ -1072,25 +1072,12 @@ AddAce(PACL pAcl,
     return TRUE;
 }
 
-/*
- * @implemented
+/******************************************************************************
+ * DeleteAce [ADVAPI32.@]
  */
-BOOL
-WINAPI
-DeleteAce(PACL pAcl,
-          DWORD dwAceIndex)
+BOOL WINAPI DeleteAce(PACL pAcl, DWORD dwAceIndex)
 {
-    NTSTATUS Status;
-
-    Status = RtlDeleteAce(pAcl,
-                          dwAceIndex);
-    if (!NT_SUCCESS(Status))
-    {
-        SetLastError(RtlNtStatusToDosError(Status));
-        return FALSE;
-    }
-
-    return TRUE;
+    return set_ntstatus(RtlDeleteAce(pAcl, dwAceIndex));
 }
 
 /*