https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0b6f3eb8e4833ded0cfb2…
commit 0b6f3eb8e4833ded0cfb2e1b0a1635ade6fa9224
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Dec 16 09:52:02 2021 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Thu Dec 16 09:52:02 2021 +0900
[NTUSER][USER32] Use async way in TileWindows and CascadeWindows (#4167)
Processing asynchronously. CORE-17894
---
win32ss/include/ntuser.h | 2 +-
win32ss/user/ntuser/winpos.c | 4 ++--
win32ss/user/user32/windows/mdi.c | 4 ++--
win32ss/user/user32/windows/window.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/win32ss/include/ntuser.h b/win32ss/include/ntuser.h
index 38076513db2..339076b4984 100644
--- a/win32ss/include/ntuser.h
+++ b/win32ss/include/ntuser.h
@@ -2129,7 +2129,7 @@ BOOL
NTAPI
NtUserEndDeferWindowPosEx(
HDWP WinPosInfo,
- DWORD Unknown1);
+ BOOL bAsync);
BOOL
NTAPI
diff --git a/win32ss/user/ntuser/winpos.c b/win32ss/user/ntuser/winpos.c
index da70805ed9c..4586d2357dc 100644
--- a/win32ss/user/ntuser/winpos.c
+++ b/win32ss/user/ntuser/winpos.c
@@ -3164,12 +3164,12 @@ NtUserChildWindowFromPointEx(HWND hwndParent,
*/
BOOL APIENTRY
NtUserEndDeferWindowPosEx(HDWP WinPosInfo,
- DWORD Unknown1)
+ BOOL bAsync)
{
BOOL Ret;
TRACE("Enter NtUserEndDeferWindowPosEx\n");
UserEnterExclusive();
- Ret = IntEndDeferWindowPosEx(WinPosInfo, (BOOL)Unknown1);
+ Ret = IntEndDeferWindowPosEx(WinPosInfo, bAsync);
TRACE("Leave NtUserEndDeferWindowPosEx, ret=%i\n", Ret);
UserLeave();
return Ret;
diff --git a/win32ss/user/user32/windows/mdi.c b/win32ss/user/user32/windows/mdi.c
index c93e541b463..2849c0d6612 100644
--- a/win32ss/user/user32/windows/mdi.c
+++ b/win32ss/user/user32/windows/mdi.c
@@ -2190,7 +2190,7 @@ CascadeWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
++ret;
}
- EndDeferWindowPos(hDWP);
+ NtUserEndDeferWindowPosEx(hDWP, TRUE);
if (hwndPrev)
SetForegroundWindow(hwndPrev);
@@ -2384,7 +2384,7 @@ TileWindows(HWND hwndParent, UINT wFlags, LPCRECT lpRect,
++ret;
}
- EndDeferWindowPos(hDWP);
+ NtUserEndDeferWindowPosEx(hDWP, TRUE);
if (hwndPrev)
SetForegroundWindow(hwndPrev);
diff --git a/win32ss/user/user32/windows/window.c b/win32ss/user/user32/windows/window.c
index 8aa237ba397..cf7f5c9ccc0 100644
--- a/win32ss/user/user32/windows/window.c
+++ b/win32ss/user/user32/windows/window.c
@@ -645,7 +645,7 @@ DeferWindowPos(HDWP hWinPosInfo,
BOOL WINAPI
EndDeferWindowPos(HDWP hWinPosInfo)
{
- return NtUserEndDeferWindowPosEx(hWinPosInfo, 0);
+ return NtUserEndDeferWindowPosEx(hWinPosInfo, FALSE);
}