https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e39863bdf672cb3c3e6d8…
commit e39863bdf672cb3c3e6d83264e1212c4d281ea8b
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Oct 30 17:24:47 2018 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Oct 30 17:24:47 2018 +0900
[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 0c9b184f0d..9356415c46 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
{