瀏覽代碼

Simplify debugging by resetting error code

Andy Cedilnik 23 年之前
父節點
當前提交
4fe98d8068
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Source/cmSystemTools.cxx

+ 1 - 0
Source/cmSystemTools.cxx

@@ -1479,6 +1479,7 @@ bool RunCommandViaWin32(const char* command,
 			int& retVal,
 			bool verbose)
 {
+  ::SetLastError(ERROR_SUCCESS);
   if ( ! command )
     {
     cmSystemTools::Error("No command specified");