summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormalc <av1474@comtv.ru>2009-09-27 14:38:18 +0400
committermalc <av1474@comtv.ru>2009-09-27 14:41:14 +0400
commitde1c90cf8b73992b4197561850d2da1075fb82eb (patch)
tree2bc5138ce76d6c2780a462e89d43c004a5c28341
parent705e83f6545278e530b6537d34943c217320b244 (diff)
downloadqemu-de1c90cf8b73992b4197561850d2da1075fb82eb.tar.gz
qemu-de1c90cf8b73992b4197561850d2da1075fb82eb.tar.bz2
qemu-de1c90cf8b73992b4197561850d2da1075fb82eb.zip
vl: Add failure check for SetEvent
Signed-off-by: malc <av1474@comtv.ru>
-rw-r--r--vl.c6
1 files changed, 5 insertions, 1 deletions
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