From 39a9bd451f7ad052a44fb98aab35645433cb9d64 Mon Sep 17 00:00:00 2001 From: patrickvl Date: Wed, 6 Feb 2019 13:59:38 +0100 Subject: [PATCH] Log initialization failure in the loader --- src/loader/loader.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/loader/loader.cpp b/src/loader/loader.cpp index 25f33d90b..7f3b023b8 100644 --- a/src/loader/loader.cpp +++ b/src/loader/loader.cpp @@ -193,9 +193,10 @@ DWORD CALLBACK rawMain() // of the address range reservations pfnEmulate(system); // TODO : Pass along all data that we've gathered up until here (or rebuild it over there) - // Once the Emulate function has control, it may never return here + // Once emulation actually started, execution may never return here // because all code and data that have been used up until now are - // overwritten. From now on, only emulated code is allowed to access - // this memory! + // overwritten. From then on, only emulated code is allowed to access + // this memory! If we *did* return here, initialization failed + OutputMessage("Initialization failure!\n"); return ERROR_APP_DATA_CORRUPT; }