- Fix splitpath when called with filename without path

svn path=/trunk/; revision=54735
This commit is contained in:
Rafal Harabien 2011-12-22 23:52:51 +00:00
parent 5f1afc0280
commit 3a31942276

View file

@ -63,8 +63,10 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
} }
/* Check if we got a file name / extension */ /* Check if we got a file name / extension */
if (!file_start) file_start = path; if (!file_start)
if (!ext_start || ext_start < file_start) ext_start = path; file_start = dir_start;
if (!ext_start || ext_start < file_start)
ext_start = path;
if (dir) if (dir)
{ {