Connor McAdams (@cmcadams) commented about dlls/setupapi/devinst.c:
ret = GetLastError();
break;
}
if (ret != ERROR_INVALID_DATA)
{
*prop_type = type;
if (req_size)
*req_size = size;
}
else
ret = ERROR_NOT_FOUND;
- }
- else if (IsEqualDevPropKey( *prop_key, DEVPKEY_Device_InstanceId ))
- {
DWORD size = (wcslen( device->instanceId ) + 1) * sizeof( WCHAR );
*prop_type = DEVPROP_TYPE_STRING;
```suggestion:-1+0 DWORD size = (wcslen( device->instanceId ) + 1) * sizeof( WCHAR );
*prop_type = DEVPROP_TYPE_STRING; ``` Split variable declaration and code here.