Commit 707fca6c authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

setupapi: Set last error on invalid input.

parent 15eba016
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment