From 299e90b418c1f97e05bdd40f5850a8fff847928b Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Wed, 12 Jan 2011 00:22:41 +0100 Subject: close the handle before returning (XhmikosR and sansnom05) --- plugins/upd/upd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'plugins/upd') diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c index c5ff8b84..0186ed3c 100644 --- a/plugins/upd/upd.c +++ b/plugins/upd/upd.c @@ -57,13 +57,11 @@ check_version () buffer[dwRead] = 0; } - return buffer; - InternetCloseHandle (hFile); + return buffer; } InternetCloseHandle (hINet); - return "Unknown"; } -- cgit 1.4.1