[SETUPAPI] Use ClassInstallReserved field instead of Reserved to store a pointer.

The Reserved field is ULONG and we need ULONG_PTR. ClassInstallReserved was unused so far. I have no idea whether this is correct, but it cannot be more incorrect than what we had.
This commit is contained in:
Timo Kreuzer 2018-02-28 20:14:28 +01:00
parent 0c4d21a5a1
commit 61e35141e8
3 changed files with 14 additions and 14 deletions

View file

@ -5233,7 +5233,7 @@ SetupDiRegisterCoDeviceInstallers(
if (!Result)
goto cleanup;
SelectedDriver = (struct DriverInfoElement *)InstallParams.Reserved;
SelectedDriver = (struct DriverInfoElement *)InstallParams.ClassInstallReserved;
if (SelectedDriver == NULL)
{
SetLastError(ERROR_NO_DRIVER_SELECTED);
@ -5436,7 +5436,7 @@ SetupDiInstallDevice(
goto cleanup;
}
SelectedDriver = (struct DriverInfoElement *)InstallParams.Reserved;
SelectedDriver = (struct DriverInfoElement *)InstallParams.ClassInstallReserved;
if (SelectedDriver == NULL)
{
SetLastError(ERROR_NO_DRIVER_SELECTED);