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,
|
int& retVal,
|
||||||
bool verbose)
|
bool verbose)
|
||||||
{
|
{
|
||||||
|
::SetLastError(ERROR_SUCCESS);
|
||||||
if ( ! command )
|
if ( ! command )
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("No command specified");
|
cmSystemTools::Error("No command specified");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user