16 Feb
2023
16 Feb
'23
6:52 a.m.
Zhiyi Zhang (@zhiyi) commented about programs/winecfg/theme.c:
static void init_dialog (HWND dialog) { + WCHAR *buf = get_reg_key(root, subkey, name, L"\0001"); + int state = wcscmp(buf, L"");
Let change `buf` to `value` and `state` to `apps_use_light_theme`. And please don't use the return value from wcscmp() directly. It must be 0 or 1. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2183#note_24488