mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Fix edge case in directory structure creation.
This commit is contained in:
parent
b4d6833231
commit
2b5e45cd9b
@ -37,7 +37,7 @@ static bool CreateDirStruct( const std::string& path )
|
|||||||
{
|
{
|
||||||
pos = path.find( '/', pos+1 );
|
pos = path.find( '/', pos+1 );
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if( pos == 2 ) continue; // Don't create drive name.
|
if( pos == 2 && path[1] == ':' ) continue; // Don't create drive name.
|
||||||
if( _mkdir( path.substr( 0, pos ).c_str() ) != 0 )
|
if( _mkdir( path.substr( 0, pos ).c_str() ) != 0 )
|
||||||
#else
|
#else
|
||||||
if( mkdir( path.substr( 0, pos ).c_str(), S_IRWXU ) != 0 )
|
if( mkdir( path.substr( 0, pos ).c_str(), S_IRWXU ) != 0 )
|
||||||
|
Loading…
Reference in New Issue
Block a user