* security.cc (open_local_policy): Use POLICY_EXECUTE instead of
enumerating user rights.
This commit is contained in:
parent
e37f6c57cd
commit
5d3949b064
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user