From c87d0964ef7534d50a4c729a6ae20045b3a0cd34 Mon Sep 17 00:00:00 2001 From: Olga Krishtal Date: Wed, 28 Oct 2015 18:13:56 +0300 Subject: qga: fixed CloseHandle in qmp_guest_file_open CloseHandle use HANDLE as an argument, but not *HANDLE Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev Reviewed-by: Stefan Weil CC: Michael Roth Signed-off-by: Michael Roth --- qga/commands-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qga/commands-win32.c') 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; } -- cgit v1.2.3