From 46867ec0cfb2887b638f4912a59a6d49e1027a2a Mon Sep 17 00:00:00 2001 From: cc9cii Date: Sat, 1 Mar 2014 07:24:20 +1100 Subject: [PATCH] Fix file handles being left open on windows builds --- components/files/lowlevelfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/files/lowlevelfile.cpp b/components/files/lowlevelfile.cpp index 71fd1b523c..06ee9fb4e8 100644 --- a/components/files/lowlevelfile.cpp +++ b/components/files/lowlevelfile.cpp @@ -219,7 +219,7 @@ LowLevelFile::LowLevelFile () LowLevelFile::~LowLevelFile () { - if (mHandle == INVALID_HANDLE_VALUE) + if (mHandle != INVALID_HANDLE_VALUE) CloseHandle (mHandle); }