From 097e274347ae6d5ba2dc17cd3efd95e60994dfb2 Mon Sep 17 00:00:00 2001 From: Akash Mozumdar Date: Thu, 19 Jul 2018 01:44:44 -0400 Subject: [PATCH] bugfix --- vnr/texthook/hookman.cc | 2 +- vnr/texthook/textthread.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vnr/texthook/hookman.cc b/vnr/texthook/hookman.cc index 0f018bd..19cd2aa 100644 --- a/vnr/texthook/hookman.cc +++ b/vnr/texthook/hookman.cc @@ -15,7 +15,7 @@ #include "winmutex/winmutex.h" #include -#define HM_LOCK CriticalSectionLocker locker(hmCs) // Synchronized scope for accessing private data +#define HM_LOCK CriticalSectionLocker hmLocker(hmCs) // Synchronized scope for accessing private data HookManager::HookManager() : current(nullptr), diff --git a/vnr/texthook/textthread.cc b/vnr/texthook/textthread.cc index b25043f..ed35928 100644 --- a/vnr/texthook/textthread.cc +++ b/vnr/texthook/textthread.cc @@ -14,7 +14,7 @@ extern HookManager* man; extern HWND dummyWindow; -#define TT_LOCK CriticalSectionLocker locker(ttCs) // Synchronized scope for accessing private data +#define TT_LOCK CriticalSectionLocker ttLocker(ttCs) // Synchronized scope for accessing private data TextThread::TextThread(ThreadParameter tp, unsigned int threadNumber, unsigned int splitDelay) : storage(),