mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
display the "Reinstall Driver" button in case the installation previously failed
svn path=/trunk/; revision=19913
This commit is contained in:
parent
5666b29c05
commit
ff7cc9a72a
4 changed files with 19 additions and 3 deletions
|
@ -19,6 +19,7 @@ BEGIN
|
|||
IDS_DEVONPARENT "on %1"
|
||||
IDS_TROUBLESHOOTDEV "&Troubleshoot..."
|
||||
IDS_ENABLEDEV "E&nable Device"
|
||||
IDS_REINSTALLDRV "Re&install Driver"
|
||||
END
|
||||
|
||||
STRINGTABLE
|
||||
|
|
|
@ -470,10 +470,18 @@ GetParentNode:
|
|||
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,
|
||||
|
|
|
@ -56,6 +56,12 @@ ShowDeviceProblemWizard(IN HWND hWndParent OPTIONAL,
|
|||
break;
|
||||
}
|
||||
|
||||
case CM_PROB_FAILED_INSTALL:
|
||||
{
|
||||
/* FIXME - display the driver installation wizard */
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
{
|
||||
/* FIXME - troubleshoot the device */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue