[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:
Olaf Schmerse 2022-05-03 16:13:37 +02:00 committed by GitHub
parent 3e6b2972a9
commit 25019525f8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}