diff options
author | nyamatongwe <devnull@localhost> | 2006-01-13 23:14:13 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2006-01-13 23:14:13 +0000 |
commit | 4e4ac5eb9da2c1de60bca4694be39a059a9c4039 (patch) | |
tree | a20aa58d4087e192b7f59dd2be3578bf8e0e2ecf /win32 | |
parent | 36585fbc514433b2821b431c5db92c2f1390a392 (diff) | |
download | scintilla-mirror-4e4ac5eb9da2c1de60bca4694be39a059a9c4039.tar.gz |
Assertion makes sure that the direct function is only called from the
window's thread.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/ScintillaWin.cxx | 1 |
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); } |