aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2006-01-13 23:14:13 +0000
committernyamatongwe <devnull@localhost>2006-01-13 23:14:13 +0000
commit4e4ac5eb9da2c1de60bca4694be39a059a9c4039 (patch)
treea20aa58d4087e192b7f59dd2be3578bf8e0e2ecf
parent36585fbc514433b2821b431c5db92c2f1390a392 (diff)
downloadscintilla-mirror-4e4ac5eb9da2c1de60bca4694be39a059a9c4039.tar.gz
Assertion makes sure that the direct function is only called from the
window's thread.
-rw-r--r--win32/ScintillaWin.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index e1654fa87..82423aee3 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -2332,6 +2332,7 @@ sptr_t PASCAL ScintillaWin::CTWndProc(
sptr_t ScintillaWin::DirectFunction(
ScintillaWin *sci, UINT iMessage, uptr_t wParam, sptr_t lParam) {
+ PLATFORM_ASSERT(::GetCurrentThreadId() == ::GetWindowThreadProcessId(sci->MainHWND(), NULL));
return sci->WndProc(iMessage, wParam, lParam);
}