Simplify debugging by resetting error code
This commit is contained in:
parent
dbd13144a3
commit
4fe98d8068
|
@ -1479,6 +1479,7 @@ bool RunCommandViaWin32(const char* command,
|
|||
int& retVal,
|
||||
bool verbose)
|
||||
{
|
||||
::SetLastError(ERROR_SUCCESS);
|
||||
if ( ! command )
|
||||
{
|
||||
cmSystemTools::Error("No command specified");
|
||||
|
|
Loading…
Reference in New Issue