LsarOpenSecret: Do not check the granted access of the policy handle and return the proper status code.

svn path=/trunk/; revision=57451
This commit is contained in:
Eric Kohl 2012-10-01 10:24:19 +00:00
parent d31ca2ab18
commit dbf0c8c57e

View file

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