From fad15dae939c51efca1c9f2b2229bdde83bbd9ab Mon Sep 17 00:00:00 2001 From: Akihiro Sagawa Date: Tue, 12 Dec 2023 21:13:37 +0900 Subject: [PATCH] comctl32/tests: Store old DPI awareness context. --- 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); -- 2.11.4.GIT