提交 de1c90cf 编写于 作者: M malc

vl: Add failure check for SetEvent

Signed-off-by: Nmalc <av1474@comtv.ru>
上级 705e83f6
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册