Kaydet (Commit) 462d2311 authored tarafından Mark Hung's avatar Mark Hung

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/27117Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMark Hung <marklh9@gmail.com>
üst 97353e5c
...@@ -5857,7 +5857,13 @@ LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lP ...@@ -5857,7 +5857,13 @@ LRESULT CALLBACK SalFrameWndProc( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lP
} }
else if ( (sal_uIntPtr)( wParam ) == IMR_QUERYCHARPOSITION ) else if ( (sal_uIntPtr)( wParam ) == IMR_QUERYCHARPOSITION )
{ {
nRet = ImplHandleIMEQueryCharPosition( hWnd, lParam ); if ( ImplSalYieldMutexTryToAcquire() )
{
nRet = ImplHandleIMEQueryCharPosition( hWnd, lParam );
ImplSalYieldMutexRelease();
}
else
nRet = FALSE;
rDef = FALSE; rDef = FALSE;
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment