diff options
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) {
|