[LSASRV]
authorEric Kohl <eric.kohl@reactos.org>
Mon, 1 Oct 2012 10:24:19 +0000 (10:24 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Mon, 1 Oct 2012 10:24:19 +0000 (10:24 +0000)
LsarOpenSecret: Do not check the granted access of the policy handle and return the proper status code.

svn path=/trunk/; revision=57451

reactos/dll/win32/lsasrv/lsarpc.c

index ce9d481..48fcf9a 100644 (file)
@@ -1219,7 +1219,7 @@ NTSTATUS WINAPI LsarOpenSecret(
     /* Validate the PolicyHandle */
     Status = LsapValidateDbObject(PolicyHandle,
                                   LsaDbPolicyObject,
-                                  POLICY_CREATE_SECRET,
+                                  0,
                                   &PolicyObject);
     if (!NT_SUCCESS(Status))
     {
@@ -1251,7 +1251,7 @@ done:
         *SecretHandle = (LSAPR_HANDLE)SecretObject;
     }
 
-    return STATUS_SUCCESS;
+    return Status;
 }