Author: hbelusca
Date: Mon Nov 4 00:22:29 2013
New Revision: 60860
URL: http://svn.reactos.org/svn/reactos?rev=60860&view=rev
Log:
[NTVDM]
- Add a missing "goto Cleanup;"
- Add DPRINT1s at the beginning and the end of ntvdm, so that one can easily localize in debug logs where one started it. Suggested by Vampyre ;)
Modified:
branches/ntvdm/subsystems/ntvdm/ntvdm.c
Modified: branches/ntvdm/subsystems/ntvdm/ntvdm.c
URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/ntvdm.c?…
==============================================================================
--- branches/ntvdm/subsystems/ntvdm/ntvdm.c [iso-8859-1] (original)
+++ branches/ntvdm/subsystems/ntvdm/ntvdm.c [iso-8859-1] Mon Nov 4 00:22:29 2013
@@ -101,6 +101,8 @@
}
#endif
+ DPRINT1("\n\n\nNTVDM - Starting '%s'...\n\n\n", CommandLine);
+
if (!EmulatorInitialize())
{
wprintf(L"FATAL: Failed to initialize the CPU emulator\n");
@@ -135,7 +137,7 @@
if (!DosCreateProcess(CommandLine, 0))
{
DisplayMessage(L"Could not start program: %S", CommandLine);
- return -1;
+ goto Cleanup;
}
/* Find the starting performance and tick count */
@@ -226,6 +228,8 @@
BiosCleanup();
EmulatorCleanup();
+ DPRINT1("\n\n\nNTVDM - Exiting...\n\n\n");
+
return 0;
}