diff options
author | Olga Krishtal <okrishtal@parallels.com> | 2015-10-28 18:13:56 +0300 |
---|---|---|
committer | Michael Roth <mdroth@linux.vnet.ibm.com> | 2015-11-04 07:37:56 -0600 |
commit | c87d0964ef7534d50a4c729a6ae20045b3a0cd34 (patch) | |
tree | 90bd1ff7b208c361edb3df62b14124f31201e632 /qga/commands-win32.c | |
parent | 125053965b05b31427ff5c75dc3b87acaa8d0505 (diff) |
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>
Diffstat (limited to 'qga/commands-win32.c')
-rw-r--r-- | qga/commands-win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/commands-win32.c b/qga/commands-win32.c index d9de23bbb8..97f19d5392 100644 --- a/qga/commands-win32.c +++ b/qga/commands-win32.c @@ -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; } |