From ed2b4f388a6fab1d362d374d5a44ed27df58cf7d Mon Sep 17 00:00:00 2001 From: Sven Strickroth Date: Sun, 26 Jan 2014 17:23:27 +0100 Subject: [PATCH] Also use correct handle This extends 9da3d6bb968a1137e8816004f18d2c20b08d7832. Signed-off-by: Sven Strickroth --- src/TGitCache/TGITCache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TGitCache/TGITCache.cpp b/src/TGitCache/TGITCache.cpp index 11dfe2add..110315007 100644 --- a/src/TGitCache/TGITCache.cpp +++ b/src/TGitCache/TGITCache.cpp @@ -353,13 +353,13 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { CTraceToOutputDebugString::Instance()(__FUNCTION__ ": Device to be dismounted\n"); CAutoWriteLock writeLock(CGitStatusCache::Instance().GetGuard()); - CGitStatusCache::Instance().CloseWatcherHandles(phandle->dbch_hdevnotify); + CGitStatusCache::Instance().CloseWatcherHandles(phandle->dbch_handle); } if (IsEqualGUID(phandle->dbch_eventguid, GUID_IO_VOLUME_LOCK)) { CTraceToOutputDebugString::Instance()(__FUNCTION__ ": Device lock event\n"); CAutoWriteLock writeLock(CGitStatusCache::Instance().GetGuard()); - CGitStatusCache::Instance().CloseWatcherHandles(phandle->dbch_hdevnotify); + CGitStatusCache::Instance().CloseWatcherHandles(phandle->dbch_handle); } } } -- 2.11.4.GIT