Paul Gofman (@gofman) commented about programs/wineboot/wineboot.c:
+ if (r) + return; + + r = RegQueryValueExW(hkey, L"MachineId", NULL, NULL, NULL, NULL); + if (r == ERROR_FILE_NOT_FOUND) + { + UUID uuid; + WCHAR buf[37]; + + if (UuidCreate(&uuid) == S_OK) + { + swprintf(buf, ARRAY_SIZE(buf), + L"%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", + uuid.Data1, uuid.Data2, uuid.Data3, + uuid.Data4[0], uuid.Data4[1], uuid.Data4[2], uuid.Data4[3], + uuid.Data4[4], uuid.Data4[5], uuid.Data4[6], uuid.Data4[7]); Since rpcrt4 import is added anyway UuidToStringW() can probably work instead of swprintf()?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/11055#note_142012