Commit a2bdadec authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Make sure NC_HandleNCCalcSize returns a valid rectangle.

Painting fails if the rectangle is invalid.
parent 2a6c1e49
......@@ -566,6 +566,12 @@ LONG NC_HandleNCCalcSize( WND *pWnd, RECT *winRect )
winRect->right -= tmpRect.right;
winRect->bottom -= tmpRect.bottom;
}
if (winRect->top > winRect->bottom)
winRect->bottom = winRect->top;
if (winRect->left > winRect->right)
winRect->right = winRect->left;
}
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment