Module: wine Branch: stable Commit: 9906ed18cb264a37b35b8a016155881b825a81e5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9906ed18cb264a37b35b8a0161...
Author: Lei Zhang thestig@google.com Date: Mon Jul 14 16:51:15 2008 -0700
user32: Clamp newly created windows to the minimum window size. (cherry picked from commit b3f4091b47e70681a9909bfccd19dee95657fabd)
---
dlls/user32/win.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 1824a52..11adcec 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -1114,6 +1114,8 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, LPCWSTR className, UINT flags WINPOS_GetMinMaxInfo( hwnd, &maxSize, &maxPos, &minTrack, &maxTrack); if (maxTrack.x < cx) cx = maxTrack.x; if (maxTrack.y < cy) cy = maxTrack.y; + if (minTrack.x > cx) cx = minTrack.x; + if (minTrack.y > cy) cy = minTrack.y; }
if (cx < 0) cx = 0;