Fix wrong test when checking arguments in SetupDiGetDriverInfoDetailW.

It was at least preventing install of display drivers

svn path=/trunk/; revision=19146
This commit is contained in:
Hervé Poussineau 2005-11-11 20:15:21 +00:00
parent 92d8d2d3d7
commit bb47741504

View file

@ -5374,7 +5374,7 @@ SetupDiGetDriverInfoDetailW(
SetLastError(ERROR_INVALID_PARAMETER); SetLastError(ERROR_INVALID_PARAMETER);
else if (DriverInfoDetailData && DriverInfoDetailData->cbSize != sizeof(SP_DRVINFO_DETAIL_DATA_W)) else if (DriverInfoDetailData && DriverInfoDetailData->cbSize != sizeof(SP_DRVINFO_DETAIL_DATA_W))
SetLastError(ERROR_INVALID_USER_BUFFER); SetLastError(ERROR_INVALID_USER_BUFFER);
else if (DriverInfoDetailData && DriverInfoDetailData->Reserved == 0) else if (DriverInfoData->Reserved == 0)
SetLastError(ERROR_NO_DRIVER_SELECTED); SetLastError(ERROR_NO_DRIVER_SELECTED);
else else
{ {