diff options
author | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-12-13 01:07:10 +0000 |
---|---|---|
committer | (no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> | 2010-12-13 01:07:10 +0000 |
commit | 1bd3ca0288fe4a5694f0975bef070209126d97fb (patch) | |
tree | e58fe6ab6095b2b60c5e89136af2d0c06f49c35c /yapp/message_pump.cpp | |
parent | 3fb5f8dface90d14b4719b092c09fff095f014c0 (diff) |
Fixes for mingw
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@583 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/message_pump.cpp')
-rw-r--r-- | yapp/message_pump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) {
|