Alexandre Julliard : user32/tests: Avoid calling a potentially missing function.

Alexandre Julliard julliard at winehq.org
Tue May 1 15:15:45 CDT 2018


Module: wine
Branch: master
Commit: fbe81f8a9e90d28d7aefebd7639122eaf5bf0d65
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=fbe81f8a9e90d28d7aefebd7639122eaf5bf0d65

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue May  1 13:18:29 2018 +0200

user32/tests: Avoid calling a potentially missing function.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 a4247f2..815cb79 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 );




More information about the wine-cvs mailing list