setupapi: Set last error on invalid input.
This commit is contained in:
parent
15eba01660
commit
707fca6cbc
|
@ -1108,7 +1108,10 @@ BOOL WINAPI SetupDiEnumDeviceInfo(
|
|||
TRACE("%p %d %p\n", devinfo, index, info);
|
||||
|
||||
if(info==NULL)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return FALSE;
|
||||
}
|
||||
if (devinfo && devinfo != (HDEVINFO)INVALID_HANDLE_VALUE)
|
||||
{
|
||||
struct DeviceInfoSet *list = (struct DeviceInfoSet *)devinfo;
|
||||
|
|
Loading…
Reference in New Issue