From 3495a6365f0e3dc3906844c37575438c62faca2a Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 1 Jun 2009 12:02:48 -0700 Subject: Fixing win32 handle leak bug. --- lib/Handle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Handle.cc') diff --git a/lib/Handle.cc b/lib/Handle.cc index 65935a4..110fcca 100644 --- a/lib/Handle.cc +++ b/lib/Handle.cc @@ -319,7 +319,7 @@ void Handle::close() throw (GeneralException) { } #if defined (_WIN32) && !defined (NO_HFILE) if (hFile) { - CloseHandle(hFile); + _close(GetHandle()); hFile = 0; } #endif -- cgit v1.2.3