diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-19 11:21:36 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-19 15:42:50 +0100 |
commit | c21db7b9a5502bf849ac890c20fac10d3ba32fcb (patch) | |
tree | 8b4c59676c2f78b7395c64073fde6326efab3b26 /vcl/source | |
parent | e63c6fe93ebd702c8c62378830d69343003b91bc (diff) |
afl-eventtesting: fix deadlock
Change-Id: Ifa75a0344c444f589c165562262a8d843cd12ef7
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/app/svapp.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index fe4fb7134fec..16467e87a27b 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -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; } |