Alexandre Julliard : user32/tests: Use the function pointer for GetWindowDpiAwarenessContext.
Alexandre Julliard
julliard at winehq.org
Wed Apr 4 15:08:00 CDT 2018
Module: wine
Branch: master
Commit: 3cad302cc05bee871a1261c7f20d054663b525f8
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3cad302cc05bee871a1261c7f20d054663b525f8
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Apr 4 11:41:31 2018 +0200
user32/tests: Use the function pointer for GetWindowDpiAwarenessContext.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/tests/sysparams.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/user32/tests/sysparams.c b/dlls/user32/tests/sysparams.c
index 876f84f..5c27248 100644
--- a/dlls/user32/tests/sysparams.c
+++ b/dlls/user32/tests/sysparams.c
@@ -3083,7 +3083,7 @@ static void test_window_dpi(void)
hwnd = CreateWindowA( "SysParamsTestClass", "Test System Parameters Application",
WS_OVERLAPPEDWINDOW, 0, 0, 100, 100, 0, 0, GetModuleHandleA(0), NULL );
ok( hwnd != 0, "failed to create window\n" );
- context = GetWindowDpiAwarenessContext( hwnd );
+ context = pGetWindowDpiAwarenessContext( hwnd );
awareness = pGetAwarenessFromDpiAwarenessContext( context );
ok( awareness == DPI_AWARENESS_UNAWARE, "wrong awareness %u\n", awareness );
DestroyWindow( hwnd );
@@ -3092,7 +3092,7 @@ static void test_window_dpi(void)
hwnd = CreateWindowA( "SysParamsTestClass", "Test System Parameters Application",
WS_OVERLAPPEDWINDOW, 0, 0, 100, 100, 0, 0, GetModuleHandleA(0), NULL );
ok( hwnd != 0, "failed to create window\n" );
- context = GetWindowDpiAwarenessContext( hwnd );
+ context = pGetWindowDpiAwarenessContext( hwnd );
awareness = pGetAwarenessFromDpiAwarenessContext( context );
ok( awareness == DPI_AWARENESS_SYSTEM_AWARE, "wrong awareness %u\n", awareness );
DestroyWindow( hwnd );
@@ -3101,24 +3101,24 @@ static void test_window_dpi(void)
hwnd = CreateWindowA( "SysParamsTestClass", "Test System Parameters Application",
WS_OVERLAPPEDWINDOW, 0, 0, 100, 100, 0, 0, GetModuleHandleA(0), NULL );
ok( hwnd != 0, "failed to create window\n" );
- context = GetWindowDpiAwarenessContext( hwnd );
+ context = pGetWindowDpiAwarenessContext( hwnd );
awareness = pGetAwarenessFromDpiAwarenessContext( context );
ok( awareness == DPI_AWARENESS_PER_MONITOR_AWARE, "wrong awareness %u\n", awareness );
DestroyWindow( hwnd );
SetLastError( 0xdeadbeef );
- context = GetWindowDpiAwarenessContext( (HWND)0xdeadbeef );
+ context = pGetWindowDpiAwarenessContext( (HWND)0xdeadbeef );
ok( !context, "got %p\n", context );
ok( GetLastError() == ERROR_INVALID_WINDOW_HANDLE, "wrong error %u\n", GetLastError() );
SetLastError( 0xdeadbeef );
- context = GetWindowDpiAwarenessContext( GetDesktopWindow() );
+ context = pGetWindowDpiAwarenessContext( GetDesktopWindow() );
awareness = pGetAwarenessFromDpiAwarenessContext( context );
ok( awareness == DPI_AWARENESS_PER_MONITOR_AWARE, "wrong awareness %u\n", awareness );
pSetThreadDpiAwarenessContext( DPI_AWARENESS_CONTEXT_UNAWARE );
SetLastError( 0xdeadbeef );
- context = GetWindowDpiAwarenessContext( GetDesktopWindow() );
+ context = pGetWindowDpiAwarenessContext( GetDesktopWindow() );
awareness = pGetAwarenessFromDpiAwarenessContext( context );
ok( awareness == DPI_AWARENESS_PER_MONITOR_AWARE, "wrong awareness %u\n", awareness );
More information about the wine-cvs
mailing list