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:
Olga Krishtal 2015-10-28 18:13:56 +03:00 committed by Michael Roth
parent 125053965b
commit c87d0964ef
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}