[ros-diffs] [gvg] 19150: The GroupOrder registry value should start with a ULONG containing the number

gvg at svn.reactos.com gvg at svn.reactos.com
Fri Nov 11 22:40:11 CET 2005


The GroupOrder registry value should start with a ULONG containing the
number
of entries following it.
Modified: trunk/reactos/lib/setupapi/install.c
  _____  

Modified: trunk/reactos/lib/setupapi/install.c
--- trunk/reactos/lib/setupapi/install.c	2005-11-11 21:30:55 UTC
(rev 19149)
+++ trunk/reactos/lib/setupapi/install.c	2005-11-11 21:39:57 UTC
(rev 19150)
@@ -1212,7 +1212,7 @@

             }
             rc = RegQueryValueExW(hGroupOrderListKey, lpLoadOrderGroup,
NULL, &dwRegType, NULL, &bufferSize);
             if (rc == ERROR_FILE_NOT_FOUND)
-                bufferSize = 0;
+                bufferSize = sizeof(DWORD);
             else if (rc != ERROR_SUCCESS)
             {
                 SetLastError(rc);
@@ -1246,10 +1246,17 @@
                     goto cleanup;
                 }
             }
+            else
+            {
+                GroupOrder[0] = 0;
+            }
             if (flags & SPSVCINST_TAGTOFRONT)
-                GroupOrder[0] = tagId;
+                GroupOrder[1] = tagId;
             else
+            {
+                GroupOrder[0]++;
                 GroupOrder[bufferSize / sizeof(DWORD)] = tagId;
+            }
 
             rc = RegSetValueExW(
                 hGroupOrderListKey,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051111/1156bef9/attachment.html


More information about the Ros-diffs mailing list