From e39863bdf672cb3c3e6d83264e1212c4d281ea8b Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Tue, 30 Oct 2018 17:24:47 +0900 Subject: [PATCH] [WIN32SS] Fix SwitchToThisWindow for #998 (#999) Reduce a failure in SwitchToThisWindow testcase of #998. CORE-15165 --- win32ss/user/ntuser/simplecall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/win32ss/user/ntuser/simplecall.c b/win32ss/user/ntuser/simplecall.c index 0c9b184f0d0..9356415c462 100644 --- a/win32ss/user/ntuser/simplecall.c +++ b/win32ss/user/ntuser/simplecall.c @@ -522,7 +522,9 @@ NtUserCallTwoParam( UserPostMessage(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0); } /* bring window to top and activate */ - co_WinPosSetWindowPos(Window, HWND_TOP, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE); + co_WinPosSetWindowPos(Window, HWND_TOP, 0, 0, 0, 0, + SWP_NOSIZE | SWP_NOMOVE | SWP_NOSENDCHANGING | + SWP_NOOWNERZORDER | SWP_ASYNCWINDOWPOS); } else {