From 22f25219e29de9b85e916fb8064367cde0ff7c3a Mon Sep 17 00:00:00 2001 From: harrybharry Date: Sun, 5 Oct 2008 11:46:56 +0000 Subject: [PATCH] Fix NPPM_GETBUFFERFILENAME bug git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@336 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/ScitillaComponent/Buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/Buffer.cpp b/PowerEditor/src/ScitillaComponent/Buffer.cpp index 2cf0e58be..b299b2d94 100644 --- a/PowerEditor/src/ScitillaComponent/Buffer.cpp +++ b/PowerEditor/src/ScitillaComponent/Buffer.cpp @@ -649,6 +649,6 @@ int FileManager::getFileNameFromBuffer(BufferID id, TCHAR * fn2copy) { return -1; Buffer * buf = getBufferByID(id); if (fn2copy) - lstrcpy(fn2copy, buf->_fileName); - return lstrlen(buf->_fileName); + lstrcpy(fn2copy, buf->getFilePath()); + return lstrlen(buf->getFilePath()); } \ No newline at end of file