Simplify debugging by resetting error code

This commit is contained in:
Andy Cedilnik 2002-09-29 21:48:16 -04:00
parent dbd13144a3
commit 4fe98d8068
1 changed files with 1 additions and 0 deletions

View File

@ -1479,6 +1479,7 @@ bool RunCommandViaWin32(const char* command,
int& retVal,
bool verbose)
{
::SetLastError(ERROR_SUCCESS);
if ( ! command )
{
cmSystemTools::Error("No command specified");