summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 01:48:16 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-30 01:48:16 (GMT)
commit4fe98d8068dd51f94d12e1227628e383622c993f (patch)
treedcab1963968a8468210e268e1aebdf62df1ac9b9 /Source
parentdbd13144a36d4d46cf9a69ba016ed47af7c988c7 (diff)
downloadCMake-4fe98d8068dd51f94d12e1227628e383622c993f.zip
CMake-4fe98d8068dd51f94d12e1227628e383622c993f.tar.gz
CMake-4fe98d8068dd51f94d12e1227628e383622c993f.tar.bz2
Simplify debugging by resetting error code
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 3717a90..d253401 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");