[WIN32SS] Fix SwitchToThisWindow for #998 (#999)
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 30 Oct 2018 08:24:47 +0000 (17:24 +0900)
committerGitHub <noreply@github.com>
Tue, 30 Oct 2018 08:24:47 +0000 (17:24 +0900)
Reduce a failure in SwitchToThisWindow testcase of #998. CORE-15165

win32ss/user/ntuser/simplecall.c

index 0c9b184..9356415 100644 (file)
@@ -522,7 +522,9 @@ NtUserCallTwoParam(
                     UserPostMessage(hwnd, WM_SYSCOMMAND, SC_RESTORE, 0);
                 }
                 /* bring window to top and activate */
                     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
             {
             }
             else
             {