Commit b6ec3349 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix tabs and add some debug.

parent 52250745
......@@ -348,8 +348,10 @@ FILE *utf8_fopen( const char *filename, const char *mode )
char spath[MAX_PATH + 1];
if( GetShortPathNameW( wpath, spath, MAX_PATH ) )
{
fprintf( stderr, "fopen path: %s -> %s\n", wpath, spath );
return fopen( spath, wmode );
}
fprintf( stderr, "GetShortPathName for %s failed\n", wpath );
errno = ENOENT;
return NULL;
}
......@@ -547,8 +549,10 @@ static int utf8_statEx( const char *filename, void *buf,
char spath[MAX_PATH + 1];
if( GetShortPathNameW( wpath, spath, MAX_PATH ) )
{
fprintf( stderr, "stati path: %s -> %s\n", wpath, spath );
return _stati64( spath, (struct _stati64 *)buf );
}
fprintf( stderr, "GetShortPathName for %s failed\n", wpath );
errno = ENOENT;
return -1;
}
......
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