https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1f3353ac3be2d9204c44d7...
commit 1f3353ac3be2d9204c44d7251c31586fcb07b114 Author: Katayama Hirofumi MZ katayama.hirofumi.mz@gmail.com AuthorDate: Sun Oct 28 03:14:04 2018 +0900 Commit: GitHub noreply@github.com CommitDate: Sun Oct 28 03:14:04 2018 +0900
[WIN32SS] SwitchToThisWindow 2nd argument is fAltTab (#988)
https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-swit... CORE-15165 --- win32ss/user/ntuser/simplecall.c | 3 ++- win32ss/user/user32/windows/window.c | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/win32ss/user/ntuser/simplecall.c b/win32ss/user/ntuser/simplecall.c index 0d2042bb6d..97879bda10 100644 --- a/win32ss/user/ntuser/simplecall.c +++ b/win32ss/user/ntuser/simplecall.c @@ -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) { diff --git a/win32ss/user/user32/windows/window.c b/win32ss/user/user32/windows/window.c index df5438045e..7624c63835 100644 --- a/win32ss/user/user32/windows/window.c +++ b/win32ss/user/user32/windows/window.c @@ -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); }