[PATCH 7/8] riched20: Use the implementation of EM_PASTESPECIAL for EM_CANPASTE.
Huw Davies
huw at codeweavers.com
Mon Aug 21 06:31:50 CDT 2017
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
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 383b307bd3..b66d8e8a44 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;
--
2.12.0
More information about the wine-patches
mailing list