Kaydet (Commit) c21db7b9 authored tarafından Caolán McNamara's avatar Caolán McNamara

afl-eventtesting: fix deadlock

Change-Id: Ifa75a0344c444f589c165562262a8d843cd12ef7
üst e63c6fe9
......@@ -368,16 +368,15 @@ namespace
return false;
}
SalKeyEvent aKeyEvent;
aKeyEvent.mnTime = 0;
rStream.ReadUInt16(aKeyEvent.mnCode);
rStream.ReadUInt16(aKeyEvent.mnCharCode);
aKeyEvent.mnRepeat = 0;
sal_uInt16 nCode, nCharCode;
rStream.ReadUInt16(nCode);
rStream.ReadUInt16(nCharCode);
if (!rStream.good())
return false;
ImplWindowFrameProc(xWin.get(), NULL, SALEVENT_KEYINPUT, &aKeyEvent);
ImplWindowFrameProc(xWin.get(), NULL, SALEVENT_KEYUP, &aKeyEvent);
KeyEvent aVCLKeyEvt(nCharCode, nCode);
Application::PostKeyEvent(VCLEVENT_WINDOW_KEYINPUT, xWin.get(), &aVCLKeyEvt);
Application::PostKeyEvent(VCLEVENT_WINDOW_KEYUP, xWin.get(), &aVCLKeyEvt);
return true;
}
......
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