mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:03:00 +00:00
Handle case where a directory contains a '." but the
filename doesn't (i.e. has no extension) svn path=/trunk/; revision=15321
This commit is contained in:
parent
52b95ec424
commit
83deefac8c
1 changed files with 3 additions and 2 deletions
|
@ -44,8 +44,9 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tmp_ext = (_TCHAR*)_tcsrchr(path,'.');
|
/* If the dot is before the last dir separator, it's part
|
||||||
if (!tmp_ext)
|
* of a directory name, not the start of the extension */
|
||||||
|
if (!tmp_ext || tmp_ext < tmp_dir)
|
||||||
{
|
{
|
||||||
tmp_ext = (_TCHAR*)path+_tcslen(path);
|
tmp_ext = (_TCHAR*)path+_tcslen(path);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue