mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
* lib/user32/controls/edit.c (EDIT_EM_SetLimitText, EDIT_WM_StyleChanged): Fix unsigned/signed warning. svn path=/trunk/; revision=5085
This commit is contained in:
parent
2f01236d5b
commit
ad21febf7c
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||
|
||||
* lib/user32/controls/edit.c (EDIT_EM_SetLimitText,
|
||||
EDIT_WM_StyleChanged): Fix unsigned/signed warning.
|
||||
|
||||
2003-07-11 Casper S. Hornstrup <chorns@users.sourceforge.net>
|
||||
|
||||
* config (DBG): Default to 0.
|
||||
|
|
|
@ -3025,7 +3025,7 @@ static void EDIT_EM_SetHandle(EDITSTATE *es, HLOCAL hloc)
|
|||
*/
|
||||
static void EDIT_EM_SetLimitText(EDITSTATE *es, INT limit)
|
||||
{
|
||||
if (limit == 0xFFFFFFFF)
|
||||
if (limit == (INT)0xFFFFFFFF)
|
||||
es->buffer_limit = -1;
|
||||
else if (es->style & ES_MULTILINE) {
|
||||
if (limit)
|
||||
|
@ -4359,7 +4359,7 @@ static void EDIT_WM_Size(EDITSTATE *es, UINT action, INT width, INT height)
|
|||
*/
|
||||
static LRESULT EDIT_WM_StyleChanged ( EDITSTATE *es, WPARAM which, const STYLESTRUCT *style)
|
||||
{
|
||||
if (GWL_STYLE == which) {
|
||||
if ((WPARAM)GWL_STYLE == which) {
|
||||
DWORD style_change_mask;
|
||||
DWORD new_style;
|
||||
/* Only a subset of changes can be applied after the control
|
||||
|
@ -4383,7 +4383,7 @@ static LRESULT EDIT_WM_StyleChanged ( EDITSTATE *es, WPARAM which, const STYLES
|
|||
}
|
||||
|
||||
es->style = (es->style & ~style_change_mask) | new_style;
|
||||
} else if (GWL_EXSTYLE == which) {
|
||||
} else if ((WPARAM)GWL_EXSTYLE == which) {
|
||||
; /* FIXME - what is needed here */
|
||||
} else {
|
||||
DbgPrint ("Invalid style change %d\n",which);
|
||||
|
|
Loading…
Reference in a new issue