mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +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
|
@ -254,12 +254,14 @@ FindDriverProc(
|
||||||
PostMessage(DevInstData->hDialog, WM_SEARCH_FINISHED, 1, 0);
|
PostMessage(DevInstData->hDialog, WM_SEARCH_FINISHED, 1, 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
if (!DevInstData->bUpdate)
|
||||||
{
|
{
|
||||||
/* Update device configuration */
|
/* Update device configuration */
|
||||||
SetFailedInstall(DevInstData->hDevInfo,
|
SetFailedInstall(DevInstData->hDevInfo,
|
||||||
&DevInstData->devInfoData,
|
&DevInstData->devInfoData,
|
||||||
TRUE);
|
TRUE);
|
||||||
|
}
|
||||||
PostMessage(DevInstData->hDialog, WM_SEARCH_FINISHED, 0, 0);
|
PostMessage(DevInstData->hDialog, WM_SEARCH_FINISHED, 0, 0);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -518,9 +520,12 @@ WelcomeDlgProc(
|
||||||
(WPARAM)TRUE,
|
(WPARAM)TRUE,
|
||||||
(LPARAM)0);
|
(LPARAM)0);
|
||||||
|
|
||||||
|
if (!DevInstData->bUpdate)
|
||||||
|
{
|
||||||
SetFailedInstall(DevInstData->hDevInfo,
|
SetFailedInstall(DevInstData->hDevInfo,
|
||||||
&DevInstData->devInfoData,
|
&DevInstData->devInfoData,
|
||||||
TRUE);
|
TRUE);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue