Changeset - r23694:b199bc1e26b1
[Not reviewed]
master
0 1 0
Berbe - 5 years ago 2019-05-01 17:57:23
4251220+Berbe@users.noreply.github.com
Fix: IniLoadFile::LoadFromDisk expects filename but BaseMedia::AddFile provided full path (#7348)
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/base_media_func.h
Show inline comments
 
@@ -159,9 +159,9 @@ bool BaseMedia<Tbase_set>::AddFile(const
 

	
 
	Tbase_set *set = new Tbase_set();
 
	IniFile *ini = new IniFile();
 
	ini->LoadFromDisk(filename, BASESET_DIR);
 
	char *path = stredup(filename + basepath_length);
 
	ini->LoadFromDisk(path, BASESET_DIR);
 

	
 
	char *path = stredup(filename + basepath_length);
 
	char *psep = strrchr(path, PATHSEPCHAR);
 
	if (psep != nullptr) {
 
		psep[1] = '\0';
0 comments (0 inline, 0 general)