From de8e935b1db1cb7ffd41b2ee4be1c19b568ad1c1 Mon Sep 17 00:00:00 2001 From: mosoto Date: Tue, 20 Jan 2015 17:41:13 -0800 Subject: [PATCH] Set file handle to INVALID_HANDLE_VALUE after closing the file. --- ext/fastfilereader/mapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fastfilereader/mapper.cpp b/ext/fastfilereader/mapper.cpp index f9a913afd..949103ddb 100644 --- a/ext/fastfilereader/mapper.cpp +++ b/ext/fastfilereader/mapper.cpp @@ -195,7 +195,7 @@ void Mapper_t::Close() } if (hFile != INVALID_HANDLE_VALUE) { CloseHandle (hFile); - hMapping = INVALID_HANDLE_VALUE; + hFile = INVALID_HANDLE_VALUE; } }