display the "Reinstall Driver" button in case the installation previously failed
Modified: trunk/reactos/lib/devmgr/En.rc
Modified: trunk/reactos/lib/devmgr/advprop.c
Modified: trunk/reactos/lib/devmgr/devprblm.c
Modified: trunk/reactos/lib/devmgr/resource.h

Modified: trunk/reactos/lib/devmgr/En.rc
--- trunk/reactos/lib/devmgr/En.rc	2005-12-05 18:15:19 UTC (rev 19912)
+++ trunk/reactos/lib/devmgr/En.rc	2005-12-05 18:43:49 UTC (rev 19913)
@@ -19,6 +19,7 @@
     IDS_DEVONPARENT "on %1"
     IDS_TROUBLESHOOTDEV "&Troubleshoot..."
     IDS_ENABLEDEV "E&nable Device"
+    IDS_REINSTALLDRV "Re&install Driver"
 END
 
 STRINGTABLE

Modified: trunk/reactos/lib/devmgr/advprop.c
--- trunk/reactos/lib/devmgr/advprop.c	2005-12-05 18:15:19 UTC (rev 19912)
+++ trunk/reactos/lib/devmgr/advprop.c	2005-12-05 18:43:49 UTC (rev 19913)
@@ -470,10 +470,18 @@
                                   DeviceInfoData->DevInst,
                                   0,
                                   dap->hMachine);
-    if (cr == CR_SUCCESS &&
-        (Status & DN_HAS_PROBLEM) && ProblemNumber == CM_PROB_DISABLED)
+    if (cr == CR_SUCCESS && (Status & DN_HAS_PROBLEM))
     {
-        TroubleShootStrId = IDS_ENABLEDEV;
+        switch (ProblemNumber)
+        {
+            case CM_PROB_DISABLED:
+                TroubleShootStrId = IDS_ENABLEDEV;
+                break;
+
+            case CM_PROB_FAILED_INSTALL:
+                TroubleShootStrId = IDS_REINSTALLDRV;
+                break;
+        }
     }
 
     if (LoadString(hDllInstance,

Modified: trunk/reactos/lib/devmgr/devprblm.c
--- trunk/reactos/lib/devmgr/devprblm.c	2005-12-05 18:15:19 UTC (rev 19912)
+++ trunk/reactos/lib/devmgr/devprblm.c	2005-12-05 18:43:49 UTC (rev 19913)
@@ -56,6 +56,12 @@
                 break;
             }
 
+            case CM_PROB_FAILED_INSTALL:
+            {
+                /* FIXME - display the driver installation wizard */
+                break;
+            }
+
             default:
             {
                 /* FIXME - troubleshoot the device */

Modified: trunk/reactos/lib/devmgr/resource.h
--- trunk/reactos/lib/devmgr/resource.h	2005-12-05 18:15:19 UTC (rev 19912)
+++ trunk/reactos/lib/devmgr/resource.h	2005-12-05 18:43:49 UTC (rev 19913)
@@ -24,6 +24,7 @@
 #define IDC_PROPERTIES		0x58A
 #define IDC_DEVUSAGELABEL	0x58B
 #define IDC_DEVPROBLEM		0x58C
+#define IDS_REINSTALLDRV	0x58D
 
 #define IDS_NAME		0x100
 #define IDS_TYPE		0x101