mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
2003-07-11 Casper S. Hornstrup <[email protected]>
* 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:
@@ -1,3 +1,8 @@
|
||||
2003-07-11 Casper S. Hornstrup <[email protected]>
|
||||
|
||||
* lib/user32/controls/edit.c (EDIT_EM_SetLimitText,
|
||||
EDIT_WM_StyleChanged): Fix unsigned/signed warning.
|
||||
|
||||
2003-07-11 Casper S. Hornstrup <[email protected]>
|
||||
|
||||
* 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);
|
||||
|
||||
Reference in New Issue
Block a user