From 3fa0a1a98d7c17be062b579973e2d5187c9afdc7 Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sat, 5 May 2012 00:56:30 +0200 Subject: [PATCH] Set the closed handle to INVALID_HANDLE_VALUE to prevent later closing it again Signed-off-by: Sven Strickroth --- src/TGitCache/DirectoryWatcher.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/TGitCache/DirectoryWatcher.cpp b/src/TGitCache/DirectoryWatcher.cpp index f4d12d003..354e09450 100644 --- a/src/TGitCache/DirectoryWatcher.cpp +++ b/src/TGitCache/DirectoryWatcher.cpp @@ -556,6 +556,7 @@ bool CDirectoryWatcher::CDirWatchInfo::CloseDirectoryHandle() if (m_hDevNotify != INVALID_HANDLE_VALUE) { UnregisterDeviceNotification(m_hDevNotify); + m_hDevNotify = INVALID_HANDLE_VALUE; } return b; } -- 2.11.4.GIT