11 Jul
2025
11 Jul
'25
6:10 p.m.
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;
DWORD size = (wcslen( device->instanceId ) + 1) * sizeof( WCHAR );
*prop_type = DEVPROP_TYPE_STRING;
Split variable declaration and code here. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8515#note_109608