From 4fe98d8068dd51f94d12e1227628e383622c993f Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Sun, 29 Sep 2002 21:48:16 -0400 Subject: [PATCH] Simplify debugging by resetting error code --- Source/cmSystemTools.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 3717a90b0..d25340170 100644 --- a/Source/cmSystemTools.cxx +++ b/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");