From: Olga Krishtal Date: Wed, 28 Oct 2015 15:13:56 +0000 (+0300) Subject: qga: fixed CloseHandle in qmp_guest_file_open X-Git-Tag: v2.5.0-rc0~30^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c87d0964ef7534d50a4c729a6ae20045b3a0cd34;p=thirdparty%2Fqemu.git 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 --- diff --git a/qga/commands-win32.c b/qga/commands-win32.c index d9de23bbb82..97f19d53925 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; }