comctl32/tests: Store old DPI awareness context.

This commit is contained in:
Akihiro Sagawa 2023-12-12 21:13:37 +09:00 committed by Alexandre Julliard
parent 902884e6db
commit fad15dae93

View file

@ -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);