mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-31 22:11:53 -06:00
vl: Add failure check for SetEvent
Signed-off-by: malc <av1474@comtv.ru>
This commit is contained in:
parent
705e83f654
commit
de1c90cf8b
1 changed files with 5 additions and 1 deletions
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…
Add table
Add a link
Reference in a new issue