From 315e77dfab4dfe58762ec6a404b0208a404a27b0 Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 9 Oct 2005 22:09:02 +0000 Subject: [PATCH] use the correct down-level scope filter flag for the computer selection dialog svn path=/trunk/; revision=18385 --- reactos/lib/aclui/misc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/reactos/lib/aclui/misc.c b/reactos/lib/aclui/misc.c index 078d1a19a54..3f875a431e7 100644 --- a/reactos/lib/aclui/misc.c +++ b/reactos/lib/aclui/misc.c @@ -136,12 +136,10 @@ OpenLSAPolicyHandle(IN LPWSTR SystemName, IN ACCESS_MASK DesiredAccess, OUT PLSA_HANDLE PolicyHandle) { - LSA_OBJECT_ATTRIBUTES LsaObjectAttributes; + LSA_OBJECT_ATTRIBUTES LsaObjectAttributes = {0}; LSA_UNICODE_STRING LsaSystemName, *psn; NTSTATUS Status; - ZeroMemory(&LsaObjectAttributes, sizeof(LSA_OBJECT_ATTRIBUTES)); - if (SystemName != NULL) { LsaSystemName.Buffer = SystemName; @@ -227,7 +225,7 @@ InitializeObjectPicker(IN PCWSTR ServerName, { DSOP_INIT_INFO InitInfo; UINT i; - DSOP_SCOPE_INIT_INFO Scopes[] = + static DSOP_SCOPE_INIT_INFO Scopes[] = { { sizeof(DSOP_SCOPE_INIT_INFO), @@ -253,7 +251,7 @@ InitializeObjectPicker(IN PCWSTR ServerName, InitInfo.pwzTargetComputer = ServerName; InitInfo.cDsScopeInfos = sizeof(Scopes) / sizeof(Scopes[0]); InitInfo.aDsScopeInfos = Scopes; - InitInfo.flOptions = DSOP_FLAG_MULTISELECT | DSOP_SCOPE_TYPE_TARGET_COMPUTER; + InitInfo.flOptions = DSOP_FLAG_MULTISELECT; InitInfo.cAttributesToFetch = sizeof(ObjectPickerAttributes) / sizeof(ObjectPickerAttributes[0]); InitInfo.apwzAttributeNames = ObjectPickerAttributes;