diff --git a/reactos/lib/ntdll/stdlib/splitp.c b/reactos/lib/ntdll/stdlib/splitp.c index b8a09c74c2e..5360d0697f0 100644 --- a/reactos/lib/ntdll/stdlib/splitp.c +++ b/reactos/lib/ntdll/stdlib/splitp.c @@ -21,7 +21,9 @@ void _splitpath( const char *path, char *drive, char *dir, char *fname, char *ex } tmp_dir = (char *)strrchr(path,'\\'); - if( tmp_dir != NULL && tmp_dir != tmp_drive + 1 ) { +// if( tmp_dir != NULL && tmp_dir != tmp_drive + 1 ) + if( tmp_dir != NULL ) + { strncpy(dir,tmp_drive+1,tmp_dir - tmp_drive); *(dir + (tmp_dir - tmp_drive)) = 0; }