From fbe81f8a9e90d28d7aefebd7639122eaf5bf0d65 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 1 May 2018 13:18:29 +0200 Subject: [PATCH] user32/tests: Avoid calling a potentially missing function. Signed-off-by: Alexandre Julliard --- dlls/user32/tests/sysparams.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/user32/tests/sysparams.c b/dlls/user32/tests/sysparams.c index a4247f27615..815cb79ddcb 100644 --- a/dlls/user32/tests/sysparams.c +++ b/dlls/user32/tests/sysparams.c @@ -3196,13 +3196,14 @@ static void test_dpi_mapping(void) BOOL ret, todo; RECT rect, orig, client, expect; ULONG_PTR i, j; - DPI_AWARENESS_CONTEXT context = pGetThreadDpiAwarenessContext(); + DPI_AWARENESS_CONTEXT context; if (!pLogicalToPhysicalPointForPerMonitorDPI) { win_skip( "LogicalToPhysicalPointForPerMonitorDPI not supported\n" ); return; } + context = pGetThreadDpiAwarenessContext(); for (i = DPI_AWARENESS_UNAWARE; i <= DPI_AWARENESS_PER_MONITOR_AWARE; i++) { pSetThreadDpiAwarenessContext( (DPI_AWARENESS_CONTEXT)~i ); -- 2.11.4.GIT