projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f1afc0
)
[CRT]
author
Rafal Harabien
<rafalh@reactos.org>
Thu, 22 Dec 2011 23:52:51 +0000
(23:52 +0000)
committer
Rafal Harabien
<rafalh@reactos.org>
Thu, 22 Dec 2011 23:52:51 +0000
(23:52 +0000)
- Fix splitpath when called with filename without path
svn path=/trunk/; revision=54735
reactos/lib/sdk/crt/string/splitp.c
patch
|
blob
|
history
diff --git
a/reactos/lib/sdk/crt/string/splitp.c
b/reactos/lib/sdk/crt/string/splitp.c
index
71c3fc2
..
9195c2e
100644
(file)
--- a/
reactos/lib/sdk/crt/string/splitp.c
+++ b/
reactos/lib/sdk/crt/string/splitp.c
@@
-63,8
+63,10
@@
void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
}
/* Check if we got a file name / extension */
- if (!file_start) file_start = path;
- if (!ext_start || ext_start < file_start) ext_start = path;
+ if (!file_start)
+ file_start = dir_start;
+ if (!ext_start || ext_start < file_start)
+ ext_start = path;
if (dir)
{