Author: rharabien
Date: Thu Dec 22 23:52:51 2011
New Revision: 54735
URL:
http://svn.reactos.org/svn/reactos?rev=54735&view=rev
Log:
[CRT]
- Fix splitpath when called with filename without path
Modified:
trunk/reactos/lib/sdk/crt/string/splitp.c
Modified: trunk/reactos/lib/sdk/crt/string/splitp.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/string/splitp.…
==============================================================================
--- trunk/reactos/lib/sdk/crt/string/splitp.c [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/crt/string/splitp.c [iso-8859-1] Thu Dec 22 23:52:51 2011
@@ -63,8 +63,10 @@
}
/* 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)
{