Commit d54043c0 authored by Robert Reif's avatar Robert Reif Committed by Alexandre Julliard

netapi32: NetUserModalsGet bug fixes and cleanup.

parent ef1c8fd1
......@@ -620,6 +620,7 @@ NET_API_STATUS WINAPI NetUserModalsGet(
int domainNameLen;
ZeroMemory(&objectAttributes, sizeof(objectAttributes));
objectAttributes.Length = sizeof(objectAttributes);
ntStatus = LsaOpenPolicy(NULL, &objectAttributes,
POLICY_VIEW_LOCAL_INFORMATION,
......@@ -638,6 +639,7 @@ NET_API_STATUS WINAPI NetUserModalsGet(
{
WARN("LsaQueryInformationPolicy failed with NT status %lx\n",
LsaNtStatusToWinError(ntStatus));
LsaClose(policyHandle);
return ntStatus;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment