vl: Add failure check for SetEvent
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
705e83f654
commit
de1c90cf8b
6
vl.c
6
vl.c
|
@ -3390,7 +3390,11 @@ static int qemu_event_init(void)
|
||||||
|
|
||||||
static void qemu_event_increment(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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue