mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +00:00
[NEWDEV] Stop update driver wizard from changing device class (#4480)
CORE-18166 The update driver wizard should not change the device class by default, especially when there is already a class set. This is the case when the wizard gets called from the device manager.
This commit is contained in:
parent
3e6b2972a9
commit
25019525f8
1 changed files with 13 additions and 8 deletions
|
@ -255,11 +255,13 @@ FindDriverProc(
|
|||
}
|
||||
else
|
||||
{
|
||||
/* Update device configuration */
|
||||
SetFailedInstall(DevInstData->hDevInfo,
|
||||
&DevInstData->devInfoData,
|
||||
TRUE);
|
||||
|
||||
if (!DevInstData->bUpdate)
|
||||
{
|
||||
/* Update device configuration */
|
||||
SetFailedInstall(DevInstData->hDevInfo,
|
||||
&DevInstData->devInfoData,
|
||||
TRUE);
|
||||
}
|
||||
PostMessage(DevInstData->hDialog, WM_SEARCH_FINISHED, 0, 0);
|
||||
}
|
||||
return 0;
|
||||
|
@ -518,9 +520,12 @@ WelcomeDlgProc(
|
|||
(WPARAM)TRUE,
|
||||
(LPARAM)0);
|
||||
|
||||
SetFailedInstall(DevInstData->hDevInfo,
|
||||
&DevInstData->devInfoData,
|
||||
TRUE);
|
||||
if (!DevInstData->bUpdate)
|
||||
{
|
||||
SetFailedInstall(DevInstData->hDevInfo,
|
||||
&DevInstData->devInfoData,
|
||||
TRUE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue