[PATCH 6/6] riched20: Add tomPasteFile support for ITextDocument_fnOpen.

Jactry Zeng jactry92 at gmail.com
Tue Feb 11 12:06:31 CST 2014


-------------- next part --------------
From d7427541dc200985be9888e4548d16982a156343 Mon Sep 17 00:00:00 2001
From: Jactry Zeng <jactry92 at gmail.com>
Date: Wed, 12 Feb 2014 00:09:02 +0800
Subject: [PATCH 6/6] riched20: Add tomPasteFile support for
 ITextDocument_fnOpen.

---
 dlls/riched20/richole.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dlls/riched20/richole.c b/dlls/riched20/richole.c
index 29d3a7b..8a7cb36 100644
--- a/dlls/riched20/richole.c
+++ b/dlls/riched20/richole.c
@@ -651,7 +651,8 @@ ITextDocument_fnOpen(ITextDocument* me, VARIANT* pVar, LONG Flags,
       return HRESULT_FROM_WIN32(GetLastError());
 
     settextex.codepage = CodePage;
-    settextex.flags = ST_DEFAULT;
+    if((Flags & 0xf000) == tomPasteFile) settextex.flags = ST_SELECTION|ST_DEFAULT;
+    else settextex.flags = ST_DEFAULT;
 
     size = GetFileSize(hFile, NULL);
     if(size == INVALID_FILE_SIZE)
-- 
1.8.3.2



More information about the wine-patches mailing list