Jelajahi Sumber

KWSys 2021-01-25 (10e36d47)

Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit 10e36d47415840a0318331733460183152a0feb9 (master).

Upstream Shortlog
-----------------

Martin Storsjö (1):
      fca5ad3a Process: Fix execute error handling re working dir on windows
KWSys Upstream 4 tahun lalu
induk
melakukan
4faaa079e3
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      ProcessWin32.c

+ 4 - 1
ProcessWin32.c

@@ -962,7 +962,10 @@ void kwsysProcess_Execute(kwsysProcess* cp)
       kwsysProcessCleanup(cp, GetLastError());
       return;
     }
-    SetCurrentDirectoryW(cp->WorkingDirectory);
+    if (!SetCurrentDirectoryW(cp->WorkingDirectory)) {
+      kwsysProcessCleanup(cp, GetLastError());
+      return;
+    }
   }
 
   /* Setup the stdin pipe for the first process.  */