From af697b174a128c2c7579d7990f752393b7fe073e Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Sat, 21 Oct 2006 17:59:15 +0000 Subject: [PATCH] - quit sysreg when checkpoint USETUP_COMPLETED is reached svn path=/trunk/; revision=24594 --- reactos/tools/sysreg/rosboot_test.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/reactos/tools/sysreg/rosboot_test.cpp b/reactos/tools/sysreg/rosboot_test.cpp index 88c7c99c1ab..12bab86b684 100644 --- a/reactos/tools/sysreg/rosboot_test.cpp +++ b/reactos/tools/sysreg/rosboot_test.cpp @@ -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" <