From bbf34a4ab17c872f119626fc43c09a1f61f0e650 Mon Sep 17 00:00:00 2001 From: Huw Davies Date: Mon, 21 Aug 2017 12:31:50 +0100 Subject: [PATCH] riched20: Use the implementation of EM_PASTESPECIAL for EM_CANPASTE. Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- 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 383b307bd30..b66d8e8a440 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;