1 Oct
2023
1 Oct
'23
1:36 a.m.
Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/tests/system.c:
+ if (ls == ERROR_FILE_NOT_FOUND) + { + light_theme = 1; + ls = 0; + } + ok(ls == 0, "RegGetValue failed: %ld.\n", ls); + + /* Call ShouldSystemUseDarkMode() and check for errors */ + SetLastError(0xdeadbeef); + function_result = pShouldSystemUseDarkMode(); + last_error = GetLastError(); + ok(last_error == 0xdeadbeef, "ShouldSystemUseDarkMode set last error: %ld.\n", last_error); + + ok(function_result == !light_theme, "Expected value %d, got %d.\n", + !light_theme, function_result); + Delete this extra line.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3959#note_47289