[USER32] Check whether the window is minimized upon SM_REPOSITION CORE-16490
[reactos.git] / 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))