- 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 ;)
svn path=/branches/ntvdm/; revision=60860
}
#endif
+ DPRINT1("\n\n\nNTVDM - Starting '%s'...\n\n\n", CommandLine);
+
if (!EmulatorInitialize())
{
wprintf(L"FATAL: Failed to initialize the CPU emulator\n");
if (!DosCreateProcess(CommandLine, 0))
{
DisplayMessage(L"Could not start program: %S", CommandLine);
- return -1;
+ goto Cleanup;
}
/* Find the starting performance and tick count */
BiosCleanup();
EmulatorCleanup();
+ DPRINT1("\n\n\nNTVDM - Exiting...\n\n\n");
+
return 0;
}