Skip to content
Snippets Groups Projects
Commit c7b46bca authored by Tristan Walter's avatar Tristan Walter
Browse files

small fix for windows (SetCurrentDirectoryA result interpretation)

parent d79e4002
No related branches found
No related tags found
No related merge requests found
...@@ -129,7 +129,7 @@ namespace cmn { ...@@ -129,7 +129,7 @@ namespace cmn {
void CommandLine::cd_home() { void CommandLine::cd_home() {
#if defined(WIN32) #if defined(WIN32)
if(SetCurrentDirectoryA(_wd.c_str())) if(!SetCurrentDirectoryA(_wd.c_str()))
#else #else
if (chdir(_wd.str().c_str())) if (chdir(_wd.str().c_str()))
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment