[ros-diffs] [gvg] 20175: Don't pop-up device installer screen.

gvg at svn.reactos.com gvg at svn.reactos.com
Wed Dec 14 21:33:11 CET 2005


Don't pop-up device installer screen.
Fixes bug 1026
Modified: branches/ros-branch-0_2_9/reactos/lib/newdev/newdev.c
  _____  

Modified: branches/ros-branch-0_2_9/reactos/lib/newdev/newdev.c
--- branches/ros-branch-0_2_9/reactos/lib/newdev/newdev.c
2005-12-14 19:51:53 UTC (rev 20174)
+++ branches/ros-branch-0_2_9/reactos/lib/newdev/newdev.c
2005-12-14 20:32:57 UTC (rev 20175)
@@ -1111,6 +1111,10 @@

     if ((!FindDriver(&DevInstData)) && (Show != SW_HIDE))
     {
 
+#if 1 /* Yes, I know I'm creating dead code here, problem is that
you'll get
+         warnings about unused variables/code if you just #ifdef the
code */
+      if (0) {
+#endif
         /* Create the Welcome page */
         ZeroMemory (&psp, sizeof(PROPSHEETPAGE));
         psp.dwSize = sizeof(PROPSHEETPAGE);
@@ -1163,6 +1167,14 @@
         PropertySheet(&psh);
 
         DeleteObject(DevInstData.hTitleFont);
+#if 1
+      }
+      else
+      {
+        DPRINT1("No driver found for %S (%S), skipping installation
screens\n",
+                DevInstData.buffer, InstanceId);
+      }
+#endif
 
     }
     else
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051214/9feca63b/attachment.html


More information about the Ros-diffs mailing list