Commit 4fe98d80 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Simplify debugging by resetting error code

parent dbd13144
...@@ -1479,6 +1479,7 @@ bool RunCommandViaWin32(const char* command, ...@@ -1479,6 +1479,7 @@ bool RunCommandViaWin32(const char* command,
int& retVal, int& retVal,
bool verbose) bool verbose)
{ {
::SetLastError(ERROR_SUCCESS);
if ( ! command ) if ( ! command )
{ {
cmSystemTools::Error("No command specified"); cmSystemTools::Error("No command specified");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment