From 9720fbaf479f63bc8c0f46305af931ca2c38a232 Mon Sep 17 00:00:00 2001 From: kbinny62 Date: Tue, 27 Jun 2017 01:40:33 +0000 Subject: [PATCH] xmltest.cpp: path separator is '\\' under WIN32 --- xmltest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmltest.cpp b/xmltest.cpp index 336aeef..3d4856a 100644 --- a/xmltest.cpp +++ b/xmltest.cpp @@ -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 );