diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-05-07 12:31:24 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-05-12 14:04:53 +0200 |
commit | 082bef47ce0be2e51fefb7cf71300c13b2a29eae (patch) | |
tree | 3b8609a8fa0afb16a103609c4be2237e73a33d51 /include/test/xmltesttools.hxx | |
parent | d3ab4fc0ba8e62d4f25caf5d759eb54d3f7ecd94 (diff) |
embeddedobj: handle getting the visible area on a thread
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.
(cherry picked from commit d5cd62164d32273a25913c93aa04be9f7f3a4073)
Change-Id: Icf1e7722d33a809fa671d1505b2a0155af040c71
Diffstat (limited to 'include/test/xmltesttools.hxx')
-rw-r--r-- | include/test/xmltesttools.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/test/xmltesttools.hxx b/include/test/xmltesttools.hxx index a2c08d7dc0e8..c2ba98885868 100644 --- a/include/test/xmltesttools.hxx +++ b/include/test/xmltesttools.hxx @@ -96,6 +96,7 @@ protected: */ void assertXPathNoAttribute(const xmlDocUniquePtr& pXmlDoc, const OString& rXPath, const OString& rAttribute); + static void registerODFNamespaces(xmlXPathContextPtr& pXmlXpathCtx); }; #endif |