mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue