[WIN32SS] SwitchToThisWindow 2nd argument is fAltTab (#988)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Sat, 27 Oct 2018 18:14:04 +0000 (03:14 +0900)
committerGitHub <noreply@github.com>
Sat, 27 Oct 2018 18:14:04 +0000 (03:14 +0900)
https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-switchtothiswindow
CORE-15165

win32ss/user/ntuser/simplecall.c
win32ss/user/user32/windows/window.c

index 0d2042b..97879bd 100644 (file)
@@ -508,13 +508,14 @@ NtUserCallTwoParam(
         case TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW:
         {
             HWND hwnd = (HWND)Param1;
+            BOOL fAltTab = (BOOL)Param2;
             Ret = 0;
             Window = UserGetWindowObject(hwnd);
             if (!Window)
             {
                 break;
             }
-            if ((BOOL)Param2)
+            if (fAltTab)
             {
                 if (Window->style & WS_MINIMIZE)
                 {
index df54380..7624c63 100644 (file)
@@ -79,9 +79,9 @@ BringWindowToTop(HWND hWnd)
 
 
 VOID WINAPI
-SwitchToThisWindow(HWND hwnd, BOOL bUnknown)
+SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
 {
-    NtUserxSwitchToThisWindow(hwnd, bUnknown);
+    NtUserxSwitchToThisWindow(hwnd, fAltTab);
 }