qga: fixed CloseHandle in qmp_guest_file_open
authorOlga Krishtal <okrishtal@parallels.com>
Wed, 28 Oct 2015 15:13:56 +0000 (18:13 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 4 Nov 2015 13:37:56 +0000 (07:37 -0600)
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>
qga/commands-win32.c

index d9de23bbb82b1f1450699b0397ea21eec0ffacf2..97f19d53925933a11a0ce43c13be76de24ef5c5f 100644 (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;
     }