* security.cc (open_local_policy): Use POLICY_EXECUTE instead of

enumerating user rights.
This commit is contained in:
Corinna Vinschen 2001-12-30 17:38:24 +00:00
parent e37f6c57cd
commit 5d3949b064
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2001-12-30 Corinna Vinschen <corinna@vinschen.de>
* security.cc (open_local_policy): Use POLICY_EXECUTE instead of
enumerating user rights.
2001-12-29 Corinna Vinschen <corinna@vinschen.de>
* security.cc (open_local_policy): Initialize lsa handle to NULL.

View File

@ -183,8 +183,7 @@ open_local_policy ()
LSA_OBJECT_ATTRIBUTES oa = { 0, 0, 0, 0, 0, 0 };
LSA_HANDLE lsa = NULL;
NTSTATUS ret = LsaOpenPolicy(NULL, &oa, POLICY_VIEW_LOCAL_INFORMATION
| POLICY_LOOKUP_NAMES, &lsa);
NTSTATUS ret = LsaOpenPolicy(NULL, &oa, POLICY_EXECUTE, &lsa);
if (ret != STATUS_SUCCESS)
set_errno (LsaNtStatusToWinError (ret));
return lsa;