Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/tests/system.c:
- HKEY hk = HKEY_CURRENT_USER;
- LRESULT lr;
- pShouldSystemUseDarkMode = (void *)GetProcAddress(GetModuleHandleA("uxtheme.dll"),
MAKEINTRESOURCEA(138));
- if (!pShouldSystemUseDarkMode)
- {
skip("ShouldSystemUseDarkMode was not found.\n");
return;
- }
- lr = RegGetValueA(hk, "Software\Microsoft\Windows\CurrentVersion\Themes\Personalize", "AppsUseLightTheme",
RRF_RT_REG_DWORD, &systemusesLightThemeType, &systemUsesLightTheme, &systemUsesLightThemeSize);
- ok(lr == 0 || lr == ERROR_FILE_NOT_FOUND, "RegGetValueA failed: %ld.\n", lr);
- if (lr == ERROR_FILE_NOT_FOUND) systemUsesLightTheme = 1;
Did you run the tests manually on a system with a dark theme?