vl: Add failure check for SetEvent

Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
malc 2009-09-27 14:38:18 +04:00
parent 705e83f654
commit de1c90cf8b
1 changed files with 5 additions and 1 deletions

6
vl.c
View File

@ -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