From c21db7b9a5502bf849ac890c20fac10d3ba32fcb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 19 Oct 2015 11:21:36 +0100 Subject: afl-eventtesting: fix deadlock Change-Id: Ifa75a0344c444f589c165562262a8d843cd12ef7 --- vcl/source/app/svapp.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'vcl') 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; } -- cgit