This commit is contained in:
Branimir Karadžić
2018-11-14 20:01:03 -08:00
parent e35f29b647
commit d1c6ff2b1f
10 changed files with 45 additions and 53 deletions

View File

@@ -158,7 +158,7 @@ namespace bx
uint32_t len = *_inOutSize;
*_out = '\0';
if (getenv(_name, _out, &len) )
if (getEnv(_name, _out, &len) )
{
FileInfo fi;
if (stat(_out, fi)
@@ -190,9 +190,13 @@ namespace bx
static bool getCurrentPath(char* _out, uint32_t* _inOutSize)
{
uint32_t len = *_inOutSize;
pwd(_out, len);
*_inOutSize = strLen(_out);
return true;
if (NULL != pwd(_out, len))
{
*_inOutSize = strLen(_out);
return true;
}
return false;
}
static bool getHomePath(char* _out, uint32_t* _inOutSize)