aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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