Commit in reactos/lib/user32/controls on MAIN
edit.c+2-21.22 -> 1.23
Merge Winehq commit:
Yoshiro Takeno <taro-x@justsystem.co.jp>
In Windows, the leading byte for multibyte characters are set to upper
byte. If single byte character is used, the upper byte is set to 0.

reactos/lib/user32/controls
edit.c 1.22 -> 1.23
diff -u -r1.22 -r1.23
--- edit.c	22 Dec 2003 11:37:32 -0000	1.22
+++ edit.c	20 Mar 2004 21:21:03 -0000	1.23
@@ -293,7 +293,6 @@
 {
 #ifdef __REACTOS__
     L"Edit",               /* name */
-    /* FIXME: Add CS_PARENTDC when the handling of WM_ERASEBKGND will be fixed! */
     CS_GLOBALCLASS | CS_DBLCLKS | CS_PARENTDC, /* style */
     (WNDPROC)EditWndProcW, /* procW */
     (WNDPROC)EditWndProcA, /* procA */
@@ -858,7 +857,8 @@
 
                 strng[0] = wParam >> 8;
                 strng[1] = wParam & 0xff;
-                MultiByteToWideChar(CP_ACP, 0, strng, 2, &charW, 1);
+                if (strng[0]) MultiByteToWideChar(CP_ACP, 0, strng, 2, &charW, 1);
+                else MultiByteToWideChar(CP_ACP, 0, &strng[1], 1, &charW, 1);
 		EDIT_WM_Char(es, charW);
 		break;
             }
CVSspam 0.2.8