projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
52b95ec
)
Handle case where a directory contains a '." but the
author
Gé van Geldorp
<ge@gse.nl>
Sun, 15 May 2005 21:28:44 +0000
(21:28 +0000)
committer
Gé van Geldorp
<ge@gse.nl>
Sun, 15 May 2005 21:28:44 +0000
(21:28 +0000)
filename doesn't (i.e. has no extension)
svn path=/trunk/; revision=15321
reactos/lib/crt/stdlib/splitp.c
patch
|
blob
|
history
diff --git
a/reactos/lib/crt/stdlib/splitp.c
b/reactos/lib/crt/stdlib/splitp.c
index
066f9e5
..
5a62ace
100644
(file)
--- a/
reactos/lib/crt/stdlib/splitp.c
+++ b/
reactos/lib/crt/stdlib/splitp.c
@@
-44,8
+44,9
@@
void _tsplitpath(const _TCHAR* path, _TCHAR* drive, _TCHAR* dir, _TCHAR* fname,
}
}
- tmp_ext = (_TCHAR*)_tcsrchr(path,'.');
- if (!tmp_ext)
+ /* If the dot is before the last dir separator, it's part
+ * of a directory name, not the start of the extension */
+ if (!tmp_ext || tmp_ext < tmp_dir)
{
tmp_ext = (_TCHAR*)path+_tcslen(path);
}