diff options
| author | Olga Krishtal | 2015-10-28 16:13:56 +0100 |
|---|---|---|
| committer | Michael Roth | 2015-11-04 14:37:56 +0100 |
| commit | c87d0964ef7534d50a4c729a6ae20045b3a0cd34 (patch) | |
| tree | 90bd1ff7b208c361edb3df62b14124f31201e632 /qga | |
| parent | qga: drop hand-made guest_file_toggle_flags helper (diff) | |
| download | qemu-c87d0964ef7534d50a4c729a6ae20045b3a0cd34.tar.gz qemu-c87d0964ef7534d50a4c729a6ae20045b3a0cd34.tar.xz qemu-c87d0964ef7534d50a4c729a6ae20045b3a0cd34.zip | |
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')
| -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; } |
