[USER32] Check whether the window is minimized upon SM_REPOSITION CORE-16490
authorKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 19 Nov 2019 01:32:06 +0000 (10:32 +0900)
committerKatayama Hirofumi MZ <katayama.hirofumi.mz@gmail.com>
Tue, 19 Nov 2019 01:32:06 +0000 (10:32 +0900)
win32ss/user/user32/windows/dialog.c

index 09879a7..1acb4f5 100644 (file)
@@ -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))