June 2, 2026
4:56 p.m.
Paul Gofman (@gofman) commented about programs/wineboot/wineboot.c:
RegCloseKey( hkey ); }
+static void create_sqmclient_registry_key(void) +{ + HKEY hkey; + LONG r; + + r = RegCreateKeyExW(HKEY_LOCAL_MACHINE, L"Software\\Microsoft\\SQMClient", 0, NULL, 0, + KEY_ALL_ACCESS, NULL, &hkey, NULL); + if (r) + return;
'return' may go to the same line as 'if (r)' (see the style in, e.g., create_computer_name_keys()). -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11055#note_142011