Commit 02bbf06c authored by Krzysztof Foltman's avatar Krzysztof Foltman Committed by Alexandre Julliard

riched20: Fix message range for get_msg_name.

parent 77ea583a
...@@ -1381,7 +1381,7 @@ static const char * const richedit_messages[] = { ...@@ -1381,7 +1381,7 @@ static const char * const richedit_messages[] = {
static const char * static const char *
get_msg_name(UINT msg) 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]; return edit_messages[msg - EM_GETSEL];
if (msg >= EM_CANPASTE && msg <= EM_GETIMEMODEBIAS) if (msg >= EM_CANPASTE && msg <= EM_GETIMEMODEBIAS)
return richedit_messages[msg - EM_CANPASTE]; return richedit_messages[msg - EM_CANPASTE];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment