[WIN32SS] SwitchToThisWindow 2nd argument is fAltTab (#988)

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-switchtothiswindow
CORE-15165
This commit is contained in:
Katayama Hirofumi MZ 2018-10-28 03:14:04 +09:00 committed by GitHub
parent 4bd0166e63
commit 1f3353ac3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -508,13 +508,14 @@ NtUserCallTwoParam(
case TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW: case TWOPARAM_ROUTINE_SWITCHTOTHISWINDOW:
{ {
HWND hwnd = (HWND)Param1; HWND hwnd = (HWND)Param1;
BOOL fAltTab = (BOOL)Param2;
Ret = 0; Ret = 0;
Window = UserGetWindowObject(hwnd); Window = UserGetWindowObject(hwnd);
if (!Window) if (!Window)
{ {
break; break;
} }
if ((BOOL)Param2) if (fAltTab)
{ {
if (Window->style & WS_MINIMIZE) if (Window->style & WS_MINIMIZE)
{ {

View file

@ -79,9 +79,9 @@ BringWindowToTop(HWND hWnd)
VOID WINAPI VOID WINAPI
SwitchToThisWindow(HWND hwnd, BOOL bUnknown) SwitchToThisWindow(HWND hwnd, BOOL fAltTab)
{ {
NtUserxSwitchToThisWindow(hwnd, bUnknown); NtUserxSwitchToThisWindow(hwnd, fAltTab);
} }