From c7b46bca0231545b8ea108606e9837439b7ec1a7 Mon Sep 17 00:00:00 2001
From: Tristan Walter <twalter@orn.mpg.de>
Date: Thu, 29 Oct 2020 23:15:55 +0100
Subject: [PATCH] small fix for windows (SetCurrentDirectoryA result
 interpretation)

---
 Application/src/commons/common/misc/CommandLine.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Application/src/commons/common/misc/CommandLine.cpp b/Application/src/commons/common/misc/CommandLine.cpp
index 6635589..70dc81f 100644
--- a/Application/src/commons/common/misc/CommandLine.cpp
+++ b/Application/src/commons/common/misc/CommandLine.cpp
@@ -129,7 +129,7 @@ namespace cmn {
     
     void CommandLine::cd_home() {
 #if defined(WIN32)
-        if(SetCurrentDirectoryA(_wd.c_str()))
+        if(!SetCurrentDirectoryA(_wd.c_str()))
 #else
         if (chdir(_wd.str().c_str()))
 #endif
-- 
GitLab