d5cd62164d
The Windows OLE2 implementation of the embedded object interface assumes that the same thread is used for loading and saving the embedded objects. This means that in case the main thread is used for loading (e.g. from remote UNO, but with OnMainThead=true), but a thread is used for storing (without an explicit OnMainThead=true), then the underlying win32 API call failed and we returned a fixed size in EmbeddedObjectRef::GetSize(). Fix the problem by explicitly checking for RPC_E_WRONG_THREAD and adding error handling for that case. Change-Id: Icf1e7722d33a809fa671d1505b2a0155af040c71 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115236 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins |
||
---|---|---|
.. | ||
qa | ||
source | ||
test | ||
util | ||
CppunitTest_embeddedobj_general.mk | ||
CppunitTest_embeddedobj_msole.mk | ||
IwyuFilter_embeddedobj.yaml | ||
Library_embobj.mk | ||
Library_emboleobj.mk | ||
Makefile | ||
Module_embeddedobj.mk | ||
README.md |
Embedding Objects Into LibreOffice
Code for embedding objects into LibreOffice (reverse of embedserv
module).