Commit ebbc708d authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

input/meta.c: Fix ArtCacheCreateDir Attempt #4. (thanks to ILEoo).

parent 0a7c2d3c
...@@ -234,11 +234,11 @@ static void ArtCacheCreateDir( const char *psz_dir ) ...@@ -234,11 +234,11 @@ static void ArtCacheCreateDir( const char *psz_dir )
while( *psz ) while( *psz )
{ {
while( *psz && *psz != '/') psz++; while( *psz && *psz != DIR_SEP_CHAR) psz++;
if( !*psz ) break; if( !*psz ) break;
*psz = 0; *psz = 0;
if( !EMPTY_STR( psz_newdir ) ) utf8_mkdir( psz_newdir ); if( !EMPTY_STR( psz_newdir ) ) utf8_mkdir( psz_newdir );
*psz = DIR_SEP; *psz = DIR_SEP_CHAR;
psz++; psz++;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment