--- trunk/reactos/lib/setupapi/devinst.c 2005-11-11 20:07:05 UTC (rev 19145)
+++ trunk/reactos/lib/setupapi/devinst.c 2005-11-11 20:15:21 UTC (rev 19146)
@@ -5374,7 +5374,7 @@
SetLastError(ERROR_INVALID_PARAMETER);
else if (DriverInfoDetailData && DriverInfoDetailData->cbSize != sizeof(SP_DRVINFO_DETAIL_DATA_W))
SetLastError(ERROR_INVALID_USER_BUFFER);
- else if (DriverInfoDetailData && DriverInfoDetailData->Reserved == 0)
+ else if (DriverInfoData->Reserved == 0)
SetLastError(ERROR_NO_DRIVER_SELECTED);
else
{