mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
win32: avoid discarding the exception handler
In all likelihood, the compiler with lto doesn't see the function being
used, from assembly macro __try1. Help it by marking the function has
being used.
Resolves:
https://gitlab.com/qemu-project/qemu/-/issues/1904
Fixes: commit d89f30b4df
("win32: wrap socket close() with an exception handler")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
7db57a73f6
commit
75b773d84c
2 changed files with 7 additions and 1 deletions
|
@ -479,7 +479,7 @@ int qemu_bind_wrap(int sockfd, const struct sockaddr *addr,
|
|||
return ret;
|
||||
}
|
||||
|
||||
EXCEPTION_DISPOSITION
|
||||
QEMU_USED EXCEPTION_DISPOSITION
|
||||
win32_close_exception_handler(struct _EXCEPTION_RECORD *exception_record,
|
||||
void *registration, struct _CONTEXT *context,
|
||||
void *dispatcher)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue