- quit sysreg when checkpoint USETUP_COMPLETED is reached

svn path=/trunk/; revision=24594
This commit is contained in:
Johannes Anderwald 2006-10-21 17:59:15 +00:00
parent c58fc3041a
commit af697b174a

View file

@ -137,6 +137,21 @@ namespace Sysreg_
cerr << line << endl;
if (line.find (_T("SYSREG_CHECKPOINT")) != string::npos)
{
line.erase (0, line.find (_T("SYSREG_CHECKPOINT")) + 19);
if (!_tcsncmp(line.c_str (), _T("USETUP_COMPLETE"), 15))
{
///
/// we need to stop the emulator to avoid
/// looping again into USETUP (at least with bootcdregtest)
return false;
}
}
if (line.find (_T("*** Fatal System Error")) != string::npos)
{
cerr << "BSOD detected" <<endl;