mirror of https://github.com/xemu-project/xemu.git
qga: fixed CloseHandle in qmp_guest_file_open
CloseHandle use HANDLE as an argument, but not *HANDLE Signed-off-by: Olga Krishtal <okrishtal@parallels.com> Signed-off-by: Denis V. Lunev <den@openvz.org> Reviewed-by: Stefan Weil <sw@weilnetz.de> CC: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
125053965b
commit
c87d0964ef
|
@ -160,7 +160,7 @@ int64_t qmp_guest_file_open(const char *path, bool has_mode,
|
|||
|
||||
fd = guest_file_handle_add(fh, errp);
|
||||
if (fd < 0) {
|
||||
CloseHandle(&fh);
|
||||
CloseHandle(fh);
|
||||
error_setg(errp, "failed to add handle to qmp handle table");
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue