From: malc Date: Sun, 27 Sep 2009 10:38:18 +0000 (+0400) Subject: vl: Add failure check for SetEvent X-Git-Tag: TizenStudio_2.0_p2.3~7387 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fe96208acd60f59479fe495245c60d3e5796e6ae;p=sdk%2Femulator%2Fqemu.git vl: Add failure check for SetEvent Signed-off-by: malc --- diff --git a/vl.c b/vl.c index fe23311..27c6458 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