From: Jason Rumney Date: Mon, 17 Dec 2007 01:50:42 +0000 (+0000) Subject: (w32_wnd_proc) : Cast char to unsigned before passing as wParam. X-Git-Tag: emacs-pretest-22.1.90~253 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a313b2911a3a5e9ef76daec103b716ad11a607cf;p=emacs.git (w32_wnd_proc) : Cast char to unsigned before passing as wParam. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2bf4e0ed15f..a5b34e38966 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-12-17 Jason Rumney + + * w32fns.c (w32_wnd_proc) : Cast char to unsigned + before passing as wParam. + 2007-12-14 Jason Rumney * w32term.c (w32_read_socket): Use MULTIBYTE_CHAR_KEYSTROKE_EVENT diff --git a/src/w32fns.c b/src/w32fns.c index 9492989e735..44087329c78 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -3129,7 +3129,8 @@ w32_wnd_proc (hwnd, msg, wParam, lParam) { /* Forward asciified character sequence. */ post_character_message - (hwnd, WM_CHAR, key.uChar.AsciiChar, lParam, + (hwnd, WM_CHAR, + (unsigned char) key.uChar.AsciiChar, lParam, w32_get_key_modifiers (wParam, lParam)); w32_kbd_patch_key (&key); }