summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-04-11 23:15:23 +0200
committerMichael Stahl <mstahl@redhat.com>2016-04-12 15:17:03 +0200
commit6f047b5866ee7c3f707a4f12ef9f95e7dbdb6e93 (patch)
tree341a7c333dfaadf0e9e240330e158f67bb2a5203 /dtrans
parent3bbd98301ad95a9aff74bd2ae08c1e2e04a0f10b (diff)
WNT: check result of PostMessage()
... so the next time something overflows the main thread's message queue it's easier to debug. Change-Id: I90a35e46f3b2cab190c7da5e53024ec549159ac6
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/win32/clipb/MtaOleClipb.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/dtrans/source/win32/clipb/MtaOleClipb.cxx b/dtrans/source/win32/clipb/MtaOleClipb.cxx
index 3c9f4620784e..39975e8739ae 100644
--- a/dtrans/source/win32/clipb/MtaOleClipb.cxx
+++ b/dtrans/source/win32/clipb/MtaOleClipb.cxx
@@ -27,7 +27,7 @@
to problems because they all use the one and only mutex called
SolarMutex.
In order to transfer clipboard requests to our sta thread we use a
- hidden window an forward these requests via window messages.
+ hidden window and forward these requests via window messages.
*/
#ifdef _MSC_VER
@@ -37,6 +37,7 @@
//#define UNICODE
#include <osl/diagnose.h>
+#include <sal/log.hxx>
#include "MtaOleClipb.hxx"
#include <osl/conditn.hxx>
@@ -589,7 +590,9 @@ LRESULT CMtaOleClipboard::sendMessage( UINT msg, WPARAM wParam, LPARAM lParam )
bool CMtaOleClipboard::postMessage( UINT msg, WPARAM wParam, LPARAM lParam )
{
- return PostMessageA( m_hwndMtaOleReqWnd, msg, wParam, lParam ) ? true : false;
+ BOOL const ret = PostMessageA(m_hwndMtaOleReqWnd, msg, wParam, lParam);
+ SAL_WARN_IF(0 == ret, "dtrans", "ERROR: PostMessage() failed!");
+ return ret ? true : false;
}
// the window proc