Huw Davies : riched20: Use the implementation of EM_PASTESPECIAL for EM_CANPASTE.
Alexandre Julliard
julliard at winehq.org
Wed Aug 23 19:54:07 CDT 2017
Module: wine
Branch: master
Commit: bbf34a4ab17c872f119626fc43c09a1f61f0e650
URL: http://source.winehq.org/git/wine.git/?a=commit;h=bbf34a4ab17c872f119626fc43c09a1f61f0e650
Author: Huw Davies <huw at codeweavers.com>
Date: Mon Aug 21 12:31:50 2017 +0100
riched20: Use the implementation of EM_PASTESPECIAL for EM_CANPASTE.
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/riched20/editor.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 383b307..b66d8e8 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -4039,14 +4039,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
return 1;
}
case EM_CANPASTE:
- {
- UINT nRTFFormat = RegisterClipboardFormatA("Rich Text Format");
- if (IsClipboardFormatAvailable(nRTFFormat))
- return TRUE;
- if (IsClipboardFormatAvailable(CF_UNICODETEXT))
- return TRUE;
- return FALSE;
- }
+ return paste_special( editor, 0, NULL, TRUE );
case WM_PASTE:
case WM_MBUTTONDOWN:
wParam = 0;
More information about the wine-cvs
mailing list