[ros-diffs] [weiden] 18385: use the correct down-level scope filter flag for the computer selection dialog

weiden at svn.reactos.com weiden at svn.reactos.com
Mon Oct 10 00:09:14 CEST 2005


use the correct down-level scope filter flag for the computer selection
dialog
Modified: trunk/reactos/lib/aclui/misc.c
  _____  

Modified: trunk/reactos/lib/aclui/misc.c
--- trunk/reactos/lib/aclui/misc.c	2005-10-09 20:56:17 UTC (rev
18384)
+++ trunk/reactos/lib/aclui/misc.c	2005-10-09 22:09:02 UTC (rev
18385)
@@ -136,12 +136,10 @@

                     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 @@
     {
         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 @@
         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;
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051010/817c24d7/attachment.html


More information about the Ros-diffs mailing list