uxtheme/tests: Verify GetCurrentThemeName() returns Aero\Aero.msstyles on Windows

Problem Native Windows returns a theme path ending with \Aero\Aero.msstyles from GetCurrentThemeName(), even when “Light” is selected. Wine currently returns ...\light\light.msstyles which confuses some WPF installers.

Windows evidence Windows 11 24H2: system.c:830: theme=L"C:\WINDOWS\resources\themes\Aero\Aero.msstyles" Result: test passed (0 failures) (full log attached in the bug / can reattach in MR if needed)

Wine behavior (before fix) theme=L"C:\windows\resources\themes\light\light.msstyles" (test is marked todo_wine to keep CI green until the fix)

This MR 1/2 uxtheme/tests: Add a conformance test that documents Windows behavior (Aero\Aero.msstyles); mark check as todo_wine on Wine. 2/2 uxtheme: Return Aero.msstyles from GetCurrentThemeName() when Light is active, matching Windows.

Notes

  • Minimal diff; no formatting changes.
  • Test passes on Windows; after the fix it also passes on Wine (todo_wine can be dropped).

Add a conformance test that calls GetCurrentThemeName() and checks that the returned path ends with \Aero\Aero.msstyles (regardless of Light/Dark). Skip if theming is inactive. On Wine this currently returns ...\light\light.msstyles, so the check is wrapped in todo_wine.

Tested on:

  • Windows 10 22H2: theme=Aero\Aero.msstyles (passes)
  • Windows 11 24H2: theme=Aero\Aero.msstyles (passes)

Signed-off-by: Nikita strudelll@etersoft.ru

Merge request reports

Loading