From ce0b6c1cbac88a998c84b1479673c5fa296b391a Mon Sep 17 00:00:00 2001
From: Thomas Faber <thfabba@gmx.de>
Date: Sat, 22 Oct 2011 18:50:57 +0200
Subject: riched20: explicitly cast WPARAM to character types

---
 dlls/riched20/editor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 5dda1ea..db9a077 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -2383,7 +2383,7 @@ static LRESULT ME_Char(ME_TextEditor *editor, WPARAM charCode,
       wstr = (WCHAR)charCode;
   else
   {
-      CHAR charA = charCode;
+      CHAR charA = (CHAR)charCode;
       MultiByteToWideChar(CP_ACP, 0, &charA, 1, &wstr, 1);
   }
 
@@ -4359,7 +4359,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
   }
   case EM_SETPASSWORDCHAR:
   {
-    editor->cPasswordMask = wParam;
+    editor->cPasswordMask = (WCHAR)wParam;
     ME_RewrapRepaint(editor);
     return 0;
   }
-- 
1.7.1.GIT
