Zhiyi Zhang (@zhiyi) commented about dlls/uxtheme/tests/system.c:
+ skip("Theming is inactive.\n"); + DestroyWindow(hwnd); + return; + } + + hdc = GetDC(hwnd); + SetRect(&rect, 0, 0, 1, 1); + + hr = DrawThemeTextEx(NULL, hdc, 0, 0, L"Wine", -1, DT_CENTER, &rect, NULL); + ok(hr == E_HANDLE, "Got unexpected hr %#lx.\n", hr); + + hr = DrawThemeTextEx(htheme, hdc, 0, 0, L"Wine", -1, DT_CENTER, &rect, NULL); + ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); + + options.dwSize = sizeof(options); + options.dwFlags = DTT_VALIDBITS; You're not supposed to use DTT_VALIDBITS here. DTT_VALIDBITS means all member values are valid. See https://learn.microsoft.com/en-us/windows/win32/api/uxtheme/ns-uxtheme-dttop.... You should specify DTT_FONTPROP here.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9287#note_120701