Author: jimtabor
Date: Thu Aug 11 00:29:26 2016
New Revision: 72194
URL:
http://svn.reactos.org/svn/reactos?rev=72194&view=rev
Log:
- Fix Desktop hang if no windows open.
Modified:
trunk/reactos/win32ss/user/user32/controls/appswitch.c
Modified: trunk/reactos/win32ss/user/user32/controls/appswitch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/user32/contro…
==============================================================================
--- trunk/reactos/win32ss/user/user32/controls/appswitch.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/user32/controls/appswitch.c [iso-8859-1] Thu Aug 11
00:29:26 2016
@@ -312,7 +312,7 @@
ResizeAndCenter(switchdialog, totalW, totalH);
}
-void ProcessHotKey(VOID)
+BOOL ProcessHotKey(VOID)
{
if (!isOpen)
{
@@ -320,7 +320,7 @@
EnumWindowsZOrder(EnumerateCallback, 0);
if (windowCount < 2)
- return;
+ return FALSE;
selectedWindow = 1;
@@ -335,6 +335,7 @@
selectedWindow = (selectedWindow + 1)%windowCount;
InvalidateRect(switchdialog, NULL, TRUE);
}
+ return TRUE;
}
LRESULT WINAPI DoAppSwitch( WPARAM wParam, LPARAM lParam )
@@ -359,7 +360,7 @@
case VK_TAB:
if( !CreateSwitcherWindow(User32Instance) ) goto Exit;
if( !GetDialogFont() ) goto Exit;
- ProcessHotKey();
+ if( !ProcessHotKey() ) goto Exit;
break;
case VK_ESCAPE: