From 5587387c9f07e0632d81090a1364b749156c90fd Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 11 Sep 2008 13:13:14 +0900 Subject: [PATCH] user32: Make GetMonitorInfoW print the monitor properties. --- dlls/user32/misc.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c index f91be622dc0..9de9b910bb1 100644 --- a/dlls/user32/misc.c +++ b/dlls/user32/misc.c @@ -477,7 +477,12 @@ BOOL WINAPI GetMonitorInfoA(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo) */ BOOL WINAPI GetMonitorInfoW(HMONITOR hMonitor, LPMONITORINFO lpMonitorInfo) { - return USER_Driver->pGetMonitorInfo( hMonitor, lpMonitorInfo ); + BOOL ret = USER_Driver->pGetMonitorInfo( hMonitor, lpMonitorInfo ); + if (ret) + TRACE("flags %04x, monitor %s, work %s\n", lpMonitorInfo->dwFlags, + wine_dbgstr_rect(&lpMonitorInfo->rcMonitor), + wine_dbgstr_rect(&lpMonitorInfo->rcWork)); + return ret; } /***********************************************************************