close the handle before returning (XhmikosR and sansnom05)
This commit is contained in:
		
							parent
							
								
									1759dc27ca
								
							
						
					
					
						commit
						299e90b418
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -57,13 +57,11 @@ check_version ()
 | 
			
		|||
			buffer[dwRead] = 0;
 | 
			
		||||
		}
 | 
			
		||||
		
 | 
			
		||||
		return buffer;
 | 
			
		||||
 | 
			
		||||
		InternetCloseHandle (hFile);
 | 
			
		||||
		return buffer;
 | 
			
		||||
	}
 | 
			
		||||
	
 | 
			
		||||
	InternetCloseHandle (hINet);
 | 
			
		||||
 | 
			
		||||
	return "Unknown";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue