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(),