https://bugs.winehq.org/show_bug.cgi?id=42893
Bug ID: 42893 Summary: Cann't insert any HBITMAP in RichEdit control Product: Wine Version: 2.6 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ole32 Assignee: wine-bugs@winehq.org Reporter: xiewei@deepin.com Distribution: ---
1.Run Edit.exe with wine 2.Select any emoticon insert to the richedit,but nothing happened.
https://bugs.winehq.org/show_bug.cgi?id=42893
--- Comment #1 from Xie Wei xiewei@deepin.com --- Created attachment 58021 --> https://bugs.winehq.org/attachment.cgi?id=58021 test demo
https://bugs.winehq.org/show_bug.cgi?id=42893
--- Comment #2 from Xie Wei xiewei@deepin.com --- Created attachment 58022 --> https://bugs.winehq.org/attachment.cgi?id=58022 test demo src code
https://bugs.winehq.org/show_bug.cgi?id=42893
--- Comment #3 from Xie Wei xiewei@deepin.com --- Created attachment 58023 --> https://bugs.winehq.org/attachment.cgi?id=58023 Patch 1/4
https://bugs.winehq.org/show_bug.cgi?id=42893
--- Comment #4 from Xie Wei xiewei@deepin.com --- Created attachment 58024 --> https://bugs.winehq.org/attachment.cgi?id=58024 Patch 2/4
https://bugs.winehq.org/show_bug.cgi?id=42893
--- Comment #5 from Xie Wei xiewei@deepin.com --- Created attachment 58025 --> https://bugs.winehq.org/attachment.cgi?id=58025 Patch 2/4
https://bugs.winehq.org/show_bug.cgi?id=42893
--- Comment #6 from Xie Wei xiewei@deepin.com --- Created attachment 58026 --> https://bugs.winehq.org/attachment.cgi?id=58026 Patch 4/4
https://bugs.winehq.org/show_bug.cgi?id=42893
Xie Wei xiewei@deepin.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #58025|Patch 2/4 |Patch 3/4 description| |
--- Comment #7 from Xie Wei xiewei@deepin.com --- Comment on attachment 58025 --> https://bugs.winehq.org/attachment.cgi?id=58025 Patch 3/4
From a96e73f270745f0694ea340eb8119566d75f1117 Mon Sep 17 00:00:00 2001 From: Wei xie xiewei@linuxdeepin.com Date: Wed, 26 Apr 2017 15:14:36 +0800 Subject: [PATCH 3/4] ole32: Add init cache code after OleLoad in OleCreateFromDataEx
Fix cann't insert any HBITMAP in RichEdit control
Signed-off-by: Wei xie xiewei@linuxdeepin.com
dlls/ole32/ole2impl.c | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/dlls/ole32/ole2impl.c b/dlls/ole32/ole2impl.c index ccf31fa..a0c4445 100644 --- a/dlls/ole32/ole2impl.c +++ b/dlls/ole32/ole2impl.c @@ -181,6 +181,7 @@ HRESULT WINAPI OleCreateFromDataEx(IDataObject *data, REFIID iid, DWORD flags, { HRESULT hr; UINT src_cf;
IOleCache* ole_cache;
FIXME("(%p, %s, %08x, %08x, %d, %p, %p, %p, %p, %p, %p, %p): stub\n", data, debugstr_guid(iid), flags, renderopt, num_cache_fmts, adv_flags, cache_fmts,
@@ -193,6 +194,11 @@ HRESULT WINAPI OleCreateFromDataEx(IDataObject *data, REFIID iid, DWORD flags, if(FAILED(hr)) return hr;
/* FIXME: Init cache */
hr = IUnknown_QueryInterface((IUnknown*)*obj, &IID_IOleCache, (void**)&ole_cache);
if (SUCCEEDED(hr))
{
hr = IOleCache_InitCache(ole_cache, data);
}
return hr;
}
2.10.2
https://bugs.winehq.org/show_bug.cgi?id=42893
--- Comment #8 from Matteo Bruni matteo.mystral@gmail.com --- *** Bug 42892 has been marked as a duplicate of this bug. ***
https://bugs.winehq.org/show_bug.cgi?id=42893
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Cann't insert any HBITMAP |Can't insert any HBITMAP in |in RichEdit control |RichEdit control