summary refs log tree commit diff stats
path: root/plugins/upd
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/upd')
-rw-r--r--plugins/upd/upd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/upd/upd.c b/plugins/upd/upd.c
index 0c1cc1e7..2d5c3a4b 100644
--- a/plugins/upd/upd.c
+++ b/plugins/upd/upd.c
@@ -56,14 +56,12 @@ check_version ()
 			}
 			buffer[dwRead] = 0;
 		}
-		
-		return buffer;
 
 		InternetCloseHandle (hFile);
+		return buffer;
 	}
 	
 	InternetCloseHandle (hINet);
-
 	return "Unknown";
 }