[PATCH 0/1] MR4681: comctl32/tests: Store old DPI awareness context.
Otherwise, the context will not be saved in `test_themed_background()`. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4681
From: Akihiro Sagawa <sagawa.aki(a)gmail.com> --- dlls/comctl32/tests/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/tests/misc.c b/dlls/comctl32/tests/misc.c index d128c202c67..d2bb85b2d75 100644 --- a/dlls/comctl32/tests/misc.c +++ b/dlls/comctl32/tests/misc.c @@ -908,7 +908,7 @@ static void test_themed_background(void) pSetThreadDpiAwarenessContext = (void *)GetProcAddress(GetModuleHandleA("user32.dll"), "SetThreadDpiAwarenessContext"); if (pSetThreadDpiAwarenessContext) - pSetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE); + old_context = pSetThreadDpiAwarenessContext(DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE); memset(&cls, 0, sizeof(cls)); cls.hInstance = GetModuleHandleA(0); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4681
This merge request was approved by Zhiyi Zhang. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4681
participants (3)
-
Akihiro Sagawa -
Akihiro Sagawa (@sgwaki) -
Zhiyi Zhang (@zhiyi)