From 1bd3ca0288fe4a5694f0975bef070209126d97fb Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Mon, 13 Dec 2010 01:07:10 +0000 Subject: Fixes for mingw git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@583 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/message_pump.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yapp/message_pump.cpp') diff --git a/yapp/message_pump.cpp b/yapp/message_pump.cpp index f3c8faf..2ece03c 100644 --- a/yapp/message_pump.cpp +++ b/yapp/message_pump.cpp @@ -34,7 +34,7 @@ bool is_full_screen() { } // check other top level windows - while (hWnd = FindWindowEx(NULL, hWnd, NULL, NULL)) { + while ((hWnd = FindWindowEx(NULL, hWnd, NULL, NULL))) { if(IsWindowVisible(hWnd) == 0 || IsIconic(hWnd) || hWnd == hWndDesktop || hWnd == hWndShell) continue; @@ -57,7 +57,7 @@ bool is_full_screen() { bool is_workstation_locked() { bool rc = false; - HDESK hDesk = OpenDesktop(_T("default"), 0, FALSE, DESKTOP_SWITCHDESKTOP); + HDESK hDesk = OpenDesktop((TCHAR*)_T("default"), 0, FALSE, DESKTOP_SWITCHDESKTOP); if(hDesk != 0) { HDESK hDeskInput = OpenInputDesktop(0, FALSE, DESKTOP_SWITCHDESKTOP); if(hDeskInput == 0) { -- cgit v1.2.3