- 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
This commit is contained in:
Hermès Bélusca-Maïto 2013-11-04 00:22:29 +00:00
parent 92ce0174ac
commit b41ec9f332

View file

@ -101,6 +101,8 @@ INT wmain(INT argc, WCHAR *argv[])
} }
#endif #endif
DPRINT1("\n\n\nNTVDM - Starting '%s'...\n\n\n", CommandLine);
if (!EmulatorInitialize()) if (!EmulatorInitialize())
{ {
wprintf(L"FATAL: Failed to initialize the CPU emulator\n"); wprintf(L"FATAL: Failed to initialize the CPU emulator\n");
@ -135,7 +137,7 @@ INT wmain(INT argc, WCHAR *argv[])
if (!DosCreateProcess(CommandLine, 0)) if (!DosCreateProcess(CommandLine, 0))
{ {
DisplayMessage(L"Could not start program: %S", CommandLine); DisplayMessage(L"Could not start program: %S", CommandLine);
return -1; goto Cleanup;
} }
/* Find the starting performance and tick count */ /* Find the starting performance and tick count */
@ -226,6 +228,8 @@ Cleanup:
BiosCleanup(); BiosCleanup();
EmulatorCleanup(); EmulatorCleanup();
DPRINT1("\n\n\nNTVDM - Exiting...\n\n\n");
return 0; return 0;
} }