Index: src/chext/ShellExtControl.cpp =================================================================== diff -u -N -r6c67d46c243c6a275f2a427c991f82db59c63ef0 -r8068e0c351055554340ac9755d1bc846893bf2b8 --- src/chext/ShellExtControl.cpp (.../ShellExtControl.cpp) (revision 6c67d46c243c6a275f2a427c991f82db59c63ef0) +++ src/chext/ShellExtControl.cpp (.../ShellExtControl.cpp) (revision 8068e0c351055554340ac9755d1bc846893bf2b8) @@ -24,17 +24,17 @@ #include "TLogger.h" CShellExtControl::CShellExtControl() : - m_pShellExtData(NULL), - m_hMemory(NULL), - m_hMutex(NULL) + m_pShellExtData(nullptr), + m_hMemory(nullptr), + m_hMutex(nullptr) { BOOST_LOG_FUNC(); TLogger& rLogger = Logger::get(); BOOST_LOG_SEV(rLogger, debug) << L""; // create protection mutex - m_hMutex = ::CreateMutex(NULL, FALSE, _T("CHShellExtControlDataMutex")); + m_hMutex = ::CreateMutex(nullptr, FALSE, _T("CHShellExtControlDataMutex")); if(!m_hMutex) { BOOST_LOG_SEV(rLogger, error) << L"Cannot create mutex."; @@ -50,7 +50,7 @@ } // memory mapped file - m_hMemory = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(SHELLEXT_DATA), _T("CHShellExtControlData")); // name of map object + m_hMemory = CreateFileMapping(INVALID_HANDLE_VALUE, nullptr, PAGE_READWRITE, 0, sizeof(SHELLEXT_DATA), _T("CHShellExtControlData")); // name of map object DWORD dwLastError = GetLastError(); // NOTE: last error is needed also for success case (for already exists status) if(!m_hMemory) { @@ -69,7 +69,7 @@ ReleaseMutex(m_hMutex); CloseHandle(m_hMutex); CloseHandle(m_hMemory); - m_hMemory = NULL; + m_hMemory = nullptr; return; }