Quellcode durchsuchen

Simplify debugging by resetting error code

Andy Cedilnik vor 23 Jahren
Ursprung
Commit
4fe98d8068
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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");