mirror of
https://github.com/reactos/reactos.git
synced 2026-05-22 23:30:07 +08:00
[SETUPAPI] Set the CONFIGFLAG_FAILEDINSTALL flag in SetupDiInstallDevice
The code follows the comment now. The fix may be wrong, but DNF_DISABLED is a kernel flag and should definitely not be used in a dll.
This commit is contained in:
@@ -3410,7 +3410,7 @@ BOOL WINAPI IntSetupDiSetDeviceRegistryPropertyAW(
|
||||
hKey, PropertyMap[Property].nameA, 0,
|
||||
PropertyMap[Property].regType, PropertyBuffer,
|
||||
PropertyBufferSize);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
l = RegSetValueExW(
|
||||
@@ -5435,7 +5435,7 @@ SetupDiInstallDevice(
|
||||
SetLastError(ERROR_GEN_FAILURE);
|
||||
goto cleanup;
|
||||
}
|
||||
ConfigFlags |= DNF_DISABLED;
|
||||
ConfigFlags |= CONFIGFLAG_FAILEDINSTALL;
|
||||
Result = SetupDiSetDeviceRegistryPropertyW(
|
||||
DeviceInfoSet,
|
||||
DeviceInfoData,
|
||||
|
||||
Reference in New Issue
Block a user