user32: Avoid signed-unsigned integer comparisons
Andrew Talbot
andrew.talbot at talbotville.com
Wed Feb 27 15:13:04 CST 2013
Changelog:
user32: Avoid signed-unsigned integer comparisons.
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index 74e0ea4..d39d873 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -4863,7 +4863,7 @@ LRESULT EditWndProc_common( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, B
break;
case EM_POSFROMCHAR:
- if ((INT)wParam >= get_text_length(es)) result = -1;
+ if (wParam >= get_text_length(es)) result = -1;
else result = EDIT_EM_PosFromChar(es, (INT)wParam, FALSE);
break;
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index b587e63..0a38440 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -4701,7 +4701,7 @@ static inline void set_menu_item_text( MENUITEM *menu, LPCWSTR text, BOOL unicod
*/
static int MENU_depth( POPUPMENU *pmenu, int depth)
{
- int i;
+ UINT i;
MENUITEM *item;
int subdepth;
More information about the wine-patches
mailing list