mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Don't allow making a window with negative dimensions in WM_WINDOWPOSCHANGING.
svn path=/trunk/; revision=9367
This commit is contained in:
parent
83c27bebc6
commit
3da87fae97
2 changed files with 9 additions and 1 deletions
|
@ -491,6 +491,9 @@ static LRESULT COMBO_WindowPosChanging(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
posChanging->cx = max(posChanging->cx, 0);
|
||||||
|
posChanging->cy = max(posChanging->cy, 0);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS user32.dll
|
* PROJECT: ReactOS user32.dll
|
||||||
|
@ -898,6 +898,11 @@ DefWndHandleWindowPosChanging(HWND hWnd, WINDOWPOS* Pos)
|
||||||
if (Pos->cy < minTrack.y) Pos->cy = minTrack.y;
|
if (Pos->cy < minTrack.y) Pos->cy = minTrack.y;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Pos->cx = max(Pos->cx, 0);
|
||||||
|
Pos->cy = max(Pos->cy, 0);
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue