diff --git a/reactos/lib/user32/controls/combo.c b/reactos/lib/user32/controls/combo.c index 6f778e42a1d..1bfa9cf32e2 100644 --- a/reactos/lib/user32/controls/combo.c +++ b/reactos/lib/user32/controls/combo.c @@ -491,6 +491,9 @@ static LRESULT COMBO_WindowPosChanging( } } + posChanging->cx = max(posChanging->cx, 0); + posChanging->cy = max(posChanging->cy, 0); + return 0; } diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index 0a7295aee86..7cbc0e9c87a 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -1,4 +1,4 @@ -/* $Id: defwnd.c,v 1.136 2004/05/12 20:34:38 navaraf Exp $ +/* $Id: defwnd.c,v 1.137 2004/05/13 20:24:26 navaraf Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS user32.dll @@ -898,6 +898,11 @@ DefWndHandleWindowPosChanging(HWND hWnd, WINDOWPOS* Pos) if (Pos->cy < minTrack.y) Pos->cy = minTrack.y; } } + else + { + Pos->cx = max(Pos->cx, 0); + Pos->cy = max(Pos->cy, 0); + } return 0; }