https://git.reactos.org/?p=reactos.git;a=commitdiff;h=fa264251a74e4d6e45f84…
commit fa264251a74e4d6e45f843179c1dfa6985240754
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Nov 19 10:32:06 2019 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Tue Nov 19 10:32:06 2019 +0900
[USER32] Check whether the window is minimized upon SM_REPOSITION CORE-16490
---
win32ss/user/user32/windows/dialog.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/win32ss/user/user32/windows/dialog.c b/win32ss/user/user32/windows/dialog.c
index 09879a74789..1acb4f55306 100644
--- a/win32ss/user/user32/windows/dialog.c
+++ b/win32ss/user/user32/windows/dialog.c
@@ -1190,6 +1190,9 @@ static void DEFDLG_Reposition(HWND hwnd)
if (GetWindowLongW(hwnd, GWL_STYLE) & WS_CHILD)
return;
+ if (IsIconic(hwnd))
+ return;
+
hMon = MonitorFromWindow(hwnd, MONITOR_DEFAULTTONEAREST);
if (!GetMonitorInfoW(hMon, &mi) || !GetWindowRect(hwnd, &rc))