소스 검색

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");