diff --git a/BaseTools/toolsetup.bat b/BaseTools/toolsetup.bat index 4fcff31879..58fd26a4b5 100755 --- a/BaseTools/toolsetup.bat +++ b/BaseTools/toolsetup.bat @@ -401,6 +401,8 @@ goto end if %ERRORLEVEL% EQU 0 ( goto use_pip_basetools ) else ( + REM reset ERRORLEVEL + type nul>nul goto use_builtin_basetools )