[ADVAPI32]
authorAmine Khaldi <amine.khaldi@reactos.org>
Sun, 26 Oct 2014 10:34:40 +0000 (10:34 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sun, 26 Oct 2014 10:34:40 +0000 (10:34 +0000)
* Update CopySid().
CORE-8540

svn path=/trunk/; revision=65006

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

index f7eb02c..9b53675 100644 (file)
@@ -627,26 +627,18 @@ FreeSid(PSID pSid)
     return RtlFreeSid(pSid);
 }
 
-/*
- * @implemented
+/******************************************************************************
+ * CopySid [ADVAPI32.@]
+ *
+ * PARAMS
+ *   nDestinationSidLength []
+ *   pDestinationSid       []
+ *   pSourceSid            []
  */
 BOOL WINAPI
-CopySid(DWORD nDestinationSidLength,
-        PSID pDestinationSid,
-        PSID pSourceSid)
+CopySid( DWORD nDestinationSidLength, PSID pDestinationSid, PSID pSourceSid )
 {
-    NTSTATUS Status;
-
-    Status = RtlCopySid(nDestinationSidLength,
-                        pDestinationSid,
-                        pSourceSid);
-    if (!NT_SUCCESS (Status))
-    {
-        SetLastError(RtlNtStatusToDosError(Status));
-        return FALSE;
-    }
-
-  return TRUE;
+       return set_ntstatus(RtlCopySid(nDestinationSidLength, pDestinationSid, pSourceSid));
 }
 
 /*