From dbf0c8c57eca5e68bbffbc753c2f7ea81ddbd65f Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Mon, 1 Oct 2012 10:24:19 +0000 Subject: [PATCH] [LSASRV] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/win32/lsasrv/lsarpc.c b/reactos/dll/win32/lsasrv/lsarpc.c index ce9d4818155..48fcf9ae96c 100644 --- a/reactos/dll/win32/lsasrv/lsarpc.c +++ b/reactos/dll/win32/lsasrv/lsarpc.c @@ -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; }