qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/3] qga: fixed CloseHandle in qmp_guest_file_open


From: Denis V. Lunev
Subject: [Qemu-devel] [PATCH 2/3] qga: fixed CloseHandle in qmp_guest_file_open
Date: Wed, 28 Oct 2015 18:13:56 +0300

From: Olga Krishtal <address@hidden>

CloseHandle use HANDLE as an argument, but not *HANDLE

Signed-off-by: Olga Krishtal <address@hidden>
Signed-off-by: Denis V. Lunev <address@hidden>
Reviewed-by: Stefan Weil <address@hidden>
CC: Michael Roth <address@hidden>
---
 qga/commands-win32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qga/commands-win32.c b/qga/commands-win32.c
index d9de23b..97f19d5 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;
     }
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]