|
|
@ -4270,18 +4270,6 @@ void Notepad_plus::getCurrentOpenedFiles(Session & session, bool /*includUntitle
|
|
|
|
|
|
|
|
|
|
|
|
Buffer * buf = MainFileManager->getBufferByID(bufID);
|
|
|
|
Buffer * buf = MainFileManager->getBufferByID(bufID);
|
|
|
|
|
|
|
|
|
|
|
|
if (!buf->isUntitled())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
// if the file doesn't exist, it could be redirected
|
|
|
|
|
|
|
|
// So we turn Wow64 off
|
|
|
|
|
|
|
|
bool isWow64Off = false;
|
|
|
|
|
|
|
|
NppParameters *pNppParam = NppParameters::getInstance();
|
|
|
|
|
|
|
|
if (!PathFileExists(buf->getFullPathName()))
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pNppParam->safeWow64EnableWow64FsRedirection(FALSE);
|
|
|
|
|
|
|
|
isWow64Off = true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (PathFileExists(buf->getFullPathName()))
|
|
|
|
if (PathFileExists(buf->getFullPathName()))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
generic_string languageName = getLangFromMenu(buf);
|
|
|
|
generic_string languageName = getLangFromMenu(buf);
|
|
|
@ -4309,14 +4297,6 @@ void Notepad_plus::getCurrentOpenedFiles(Session & session, bool /*includUntitle
|
|
|
|
}
|
|
|
|
}
|
|
|
|
viewFiles->push_back(sfi);
|
|
|
|
viewFiles->push_back(sfi);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// We enable Wow64 system, if it was disabled
|
|
|
|
|
|
|
|
if (isWow64Off)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pNppParam->safeWow64EnableWow64FsRedirection(TRUE);
|
|
|
|
|
|
|
|
isWow64Off = false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
_invisibleEditView.execute(SCI_SETDOCPOINTER, 0, oldDoc);
|
|
|
|
_invisibleEditView.execute(SCI_SETDOCPOINTER, 0, oldDoc);
|
|
|
|