From b5556d9137d52f4a6554dd380b18ff8e373f55c1 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Tue, 19 Mar 2013 22:52:40 +0000 Subject: [PATCH] wait_event_timeout: return 0 for timeout git-svn-id: svn://kolibrios.org@3396 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/event.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/gui/event.inc b/kernel/trunk/gui/event.inc index ff051e1285..0abeb6aa8a 100644 --- a/kernel/trunk/gui/event.inc +++ b/kernel/trunk/gui/event.inc @@ -319,7 +319,9 @@ wait_event_timeout: mov ecx, eax ; wait_param mov edx, get_event_alone ; wait_test call Wait_events_ex - jmp wait_finish + test eax, eax + jnz wait_finish + ret ;----------------------------------------------------------------------------- align 4 get_event_ex: ;; f68:14