Commit fbe81f8a authored by Alexandre Julliard's avatar Alexandre Julliard

user32/tests: Avoid calling a potentially missing function.

parent e355cb62
...@@ -3196,13 +3196,14 @@ static void test_dpi_mapping(void) ...@@ -3196,13 +3196,14 @@ static void test_dpi_mapping(void)
BOOL ret, todo; BOOL ret, todo;
RECT rect, orig, client, expect; RECT rect, orig, client, expect;
ULONG_PTR i, j; ULONG_PTR i, j;
DPI_AWARENESS_CONTEXT context = pGetThreadDpiAwarenessContext(); DPI_AWARENESS_CONTEXT context;
if (!pLogicalToPhysicalPointForPerMonitorDPI) if (!pLogicalToPhysicalPointForPerMonitorDPI)
{ {
win_skip( "LogicalToPhysicalPointForPerMonitorDPI not supported\n" ); win_skip( "LogicalToPhysicalPointForPerMonitorDPI not supported\n" );
return; return;
} }
context = pGetThreadDpiAwarenessContext();
for (i = DPI_AWARENESS_UNAWARE; i <= DPI_AWARENESS_PER_MONITOR_AWARE; i++) for (i = DPI_AWARENESS_UNAWARE; i <= DPI_AWARENESS_PER_MONITOR_AWARE; i++)
{ {
pSetThreadDpiAwarenessContext( (DPI_AWARENESS_CONTEXT)~i ); pSetThreadDpiAwarenessContext( (DPI_AWARENESS_CONTEXT)~i );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment