mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:05:52 +00:00
[CRT]
Don't use __set_errno in libcntpr svn path=/trunk/; revision=52126
This commit is contained in:
parent
84a9cedb4e
commit
0dafd4a030
1 changed files with 4 additions and 2 deletions
|
@ -24,7 +24,9 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
|
|||
/* Check parameter */
|
||||
if (!path)
|
||||
{
|
||||
//__set_errno(EINVAL);
|
||||
#ifndef _LIBCNT_
|
||||
__set_errno(EINVAL);
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -56,7 +58,7 @@ void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
|
|||
path++;
|
||||
}
|
||||
|
||||
/* Check if we got */
|
||||
/* Check if we got a file name / extension */
|
||||
if (!file_start) file_start = path;
|
||||
if (!ext_start || ext_start < file_start) ext_start = path;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue