Index: src/chext/ShellExtControl.cpp =================================================================== diff -u -N -rc33d4855ebf17772c28012a66c829a1f21d080f5 -r6c67d46c243c6a275f2a427c991f82db59c63ef0 --- src/chext/ShellExtControl.cpp (.../ShellExtControl.cpp) (revision c33d4855ebf17772c28012a66c829a1f21d080f5) +++ src/chext/ShellExtControl.cpp (.../ShellExtControl.cpp) (revision 6c67d46c243c6a275f2a427c991f82db59c63ef0) @@ -50,10 +50,8 @@ } // memory mapped file - DWORD dwLastError = ERROR_SUCCESS; - m_hMemory = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, sizeof(SHELLEXT_DATA), _T("CHShellExtControlData")); // name of map object - dwLastError = GetLastError(); // NOTE: last error is needed also for success case (for already exists status) + DWORD dwLastError = GetLastError(); // NOTE: last error is needed also for success case (for already exists status) if(!m_hMemory) { BOOST_LOG_HRESULT(rLogger, dwLastError) << L"Cannot create file mapping.";