Krzysztof Foltman : riched20: Fix message range for get_msg_name.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jun 22 06:17:09 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 02bbf06c43964e502744bbfd22552232b0724b53
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=02bbf06c43964e502744bbfd22552232b0724b53

Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Jun 22 00:01:31 2006 +0200

riched20: Fix message range for get_msg_name.

---

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

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-cvs mailing list