mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 17:22:57 +00:00
[CRT]
- Fix splitpath when called with filename without path svn path=/trunk/; revision=54735
This commit is contained in:
parent
5f1afc0280
commit
3a31942276
1 changed files with 4 additions and 2 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue