From de1c90cf8b73992b4197561850d2da1075fb82eb Mon Sep 17 00:00:00 2001 From: malc Date: Sun, 27 Sep 2009 14:38:18 +0400 Subject: vl: Add failure check for SetEvent Signed-off-by: malc --- vl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vl.c') diff --git a/vl.c b/vl.c index fe23311d15..27c6458e07 100644 --- a/vl.c +++ b/vl.c @@ -3390,7 +3390,11 @@ static int qemu_event_init(void) static void qemu_event_increment(void) { - SetEvent(qemu_event_handle); + if (!SetEvent(qemu_event_handle)) { + fprintf(stderr, "qemu_event_increment: SetEvent failed: %d\n", + GetLastError()); + exit (1); + } } #endif -- cgit v1.2.3