From patchwork Tue Oct 27 17:48:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Denis V. Lunev" X-Patchwork-Id: 536766 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4A90114030E for ; Wed, 28 Oct 2015 04:49:27 +1100 (AEDT) Received: from localhost ([::1]:33038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr8NB-0003Mj-Cp for incoming@patchwork.ozlabs.org; Tue, 27 Oct 2015 13:49:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr8Mh-0002Z9-RW for qemu-devel@nongnu.org; Tue, 27 Oct 2015 13:48:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr8Me-0005Tq-Hf for qemu-devel@nongnu.org; Tue, 27 Oct 2015 13:48:55 -0400 Received: from mailhub.sw.ru ([195.214.232.25]:41527 helo=relay.sw.ru) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr8Me-0005Tj-4k for qemu-devel@nongnu.org; Tue, 27 Oct 2015 13:48:52 -0400 Received: from irbis.sw.ru ([10.30.2.139]) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id t9RHmhqT001048; Tue, 27 Oct 2015 20:48:46 +0300 (MSK) From: "Denis V. Lunev" To: Date: Tue, 27 Oct 2015 20:48:42 +0300 Message-Id: <1445968123-1773-3-git-send-email-den@openvz.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445968123-1773-1-git-send-email-den@openvz.org> References: <1445968123-1773-1-git-send-email-den@openvz.org> X-detected-operating-system: by eggs.gnu.org: OpenBSD 3.x X-Received-From: 195.214.232.25 Cc: Michael Roth , Olga Krishtal , Stefan Weil , qemu-devel@nongnu.org, "Denis V. Lunev" Subject: [Qemu-devel] [PATCH 2/3] qga: fixed CloseHandle in qmp_guest_file_open X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Olga Krishtal CloseHandle use HANDLE as an argument, but not *HANDLE Signed-off-by: Olga Krishtal Signed-off-by: Denis V. Lunev CC: Michael Roth CC: Stefan Weil Reviewed-by: Stefan Weil --- 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; }