diff options
author | malc <av1474@comtv.ru> | 2009-09-27 14:38:18 +0400 |
---|---|---|
committer | malc <av1474@comtv.ru> | 2009-09-27 14:41:14 +0400 |
commit | de1c90cf8b73992b4197561850d2da1075fb82eb (patch) | |
tree | 2bc5138ce76d6c2780a462e89d43c004a5c28341 | |
parent | 705e83f6545278e530b6537d34943c217320b244 (diff) | |
download | qemu-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |