[Libreoffice-commits] core.git: vcl/win
Mark Hung
marklh9 at gmail.com
Sat Jul 30 14:41:53 UTC 2016
vcl/win/window/salframe.cxx | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
New commits:
commit 462d2311384e71ab76f9d8d357d2bc1375490b13
Author: Mark Hung <marklh9 at gmail.com>
Date: Mon Jul 11 23:22:25 2016 +0800
Fix SolarMutex not locked when using IME on dropdown list.
Surround ImplHandleIMEQueryCharPosition() by
ImplSalYieldMutexAcquireWithWait() and ImplSalYieldMutexRelease().
Change-Id: I3843ad351f3b92801cd1e0066a3c73f2a52c44bd
Reviewed-on: https://gerrit.libreoffice.org/27117
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mark Hung <marklh9 at gmail.com>
diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx
index 084705c..0f341f7 100644
--- a/vcl/win/window/salframe.cxx
+++ b/vcl/win/window/salframe.cxx
@@ -5857,7 +5857,13 @@ LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lP
}
else if ( (sal_uIntPtr)( wParam ) == IMR_QUERYCHARPOSITION )
{
- nRet = ImplHandleIMEQueryCharPosition( hWnd, lParam );
+ if ( ImplSalYieldMutexTryToAcquire() )
+ {
+ nRet = ImplHandleIMEQueryCharPosition( hWnd, lParam );
+ ImplSalYieldMutexRelease();
+ }
+ else
+ nRet = FALSE;
rDef = FALSE;
}
break;
More information about the Libreoffice-commits
mailing list