diff --git a/PowerEditor/src/ScintillaComponent/Buffer.cpp b/PowerEditor/src/ScintillaComponent/Buffer.cpp index 64349aa88..680302034 100644 --- a/PowerEditor/src/ScintillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScintillaComponent/Buffer.cpp @@ -1795,7 +1795,7 @@ BufferID FileManager::getBufferFromName(const TCHAR* name) { for (auto buf : _buffers) { - if (OrdinalIgnoreCaseCompareStrings(name, buf->getFullPathName()) == 0) + if (wcscmp(name, buf->getFullPathName()) == 0) { if (!(buf->_referees.empty()) && buf->_referees[0]->isVisible()) { diff --git a/PowerEditor/src/ScintillaComponent/DocTabView.cpp b/PowerEditor/src/ScintillaComponent/DocTabView.cpp index d78219b94..fb4393441 100644 --- a/PowerEditor/src/ScintillaComponent/DocTabView.cpp +++ b/PowerEditor/src/ScintillaComponent/DocTabView.cpp @@ -95,7 +95,7 @@ BufferID DocTabView::findBufferByName(const TCHAR * fullfilename) //-1 if not fo ::SendMessage(_hSelf, TCM_GETITEM, i, reinterpret_cast(&tie)); BufferID id = reinterpret_cast(tie.lParam); Buffer * buf = MainFileManager.getBufferByID(id); - if (OrdinalIgnoreCaseCompareStrings(fullfilename, buf->getFullPathName()) == 0) + if (wcscmp(fullfilename, buf->getFullPathName()) == 0) { return id; }