xmltest.cpp: path separator is '\\' under WIN32

This commit is contained in:
kbinny62 2017-06-27 01:40:33 +00:00
parent bf29a15242
commit 9720fbaf47
1 changed files with 2 additions and 2 deletions

View File

@ -339,9 +339,9 @@ int main( int argc, const char ** argv )
fclose( fp );
#if defined WIN32
if ( !CreateDirectory( "resources/out", NULL ) && GetLastError() != ERROR_ALREADY_EXISTS ) {
if ( !CreateDirectory( "resources\\out", NULL ) && GetLastError() != ERROR_ALREADY_EXISTS ) {
#else
if ( mkdir( "resources/out", 0750 ) == -1 && errno != EEXIST ) {
if ( mkdir( "resources/out", S_IRWXU | S_IRGRP | S_IXGRP ) == -1 && errno != EEXIST ) {
#endif
printf( "Unable to create directory 'resources/out': %s\n", strerror( errno ) );
exit( 1 );