mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 07:42:56 +00:00
[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:
parent
0c4d21a5a1
commit
61e35141e8
3 changed files with 14 additions and 14 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue