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.