RICHED20: fix message range for get_msg_name

Krzysztof Foltman wdev at foltman.com
Wed Jun 21 17:01:31 CDT 2006


ChangeLog:
  * Invalid (outdated?) message range check in get_msg_name excluded 
some valid edit messages - corrected to include the whole content of 
edit_messages

Krzysztof
-------------- next part --------------
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 21f951e..9a2b966 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -1381,7 +1381,7 @@ static const char * const richedit_messa
 static const char *
 get_msg_name(UINT msg)
 {
-  if (msg >= EM_GETSEL && msg <= EM_SETLIMITTEXT)
+  if (msg >= EM_GETSEL && msg <= EM_CHARFROMPOS)
     return edit_messages[msg - EM_GETSEL];
   if (msg >= EM_CANPASTE && msg <= EM_GETIMEMODEBIAS)
     return richedit_messages[msg - EM_CANPASTE];


More information about the wine-patches mailing list