Connor McAdams (@cmcadams) commented about dlls/setupapi/devinst.c:
+ ret = GetLastError(); + else if (buf_size >= sizeof( GUID )) + { + if (guid_str[0] == '{' && guid_str[37] == '}') + { + guid_str[37] = 0; + UuidFromStringW( &guid_str[1], (GUID *)buf ); + } + else + ERR("Invalid GUID string: %s\n", debugstr_w( guid_str )); + } + else + ret = ERROR_INSUFFICIENT_BUFFER; + } + else if (!SetupDiGetDeviceRegistryPropertyW( devinfo, device_data, reg_prop, NULL, buf, buf_size, &size )) + ret = GetLastError();
ret = GetLastError();
Fix the indentation here please. :) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/8515#note_109705