From 59e3f0b9ef26b20793725cd0275e0f94647189db Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 23 Jan 2016 10:18:23 +0100 Subject: [PATCH] Changed: Minor changes --- code/nel/src/misc/big_file.cpp | 2 +- code/nel/src/misc/path.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/src/misc/big_file.cpp b/code/nel/src/misc/big_file.cpp index 9eaa73bdf..1de1c2b73 100644 --- a/code/nel/src/misc/big_file.cpp +++ b/code/nel/src/misc/big_file.cpp @@ -129,12 +129,12 @@ bool CBigFile::add (const std::string &sBigFileName, uint32 nOptions) bnp.BigFileName= sBigFileName; - // Allocate a new ThreadSafe FileId for this bnp. bnp.ThreadFileId= _ThreadFileArray.allocate(); // Get a ThreadSafe handle on the file CHandleFile &handle= _ThreadFileArray.get(bnp.ThreadFileId); + // Open the big file. handle.File = fopen (sBigFileName.c_str(), "rb"); if (handle.File == NULL) diff --git a/code/nel/src/misc/path.cpp b/code/nel/src/misc/path.cpp index 4fcaa0459..58370eb2b 100644 --- a/code/nel/src/misc/path.cpp +++ b/code/nel/src/misc/path.cpp @@ -260,7 +260,7 @@ void CFileContainer::getFileListByPath(const std::string &extension, const std:: { string ext = SSMext.get(first->idExt); string p = SSMpath.get(first->idPath); - + if (strstr(p.c_str(), path.c_str()) != NULL && (ext == extension || extension.empty())) { filenames.push_back(first->Name);