[NTVDM]: The DOS session ID specified in the NTVDM command line is in hexadecimal format (and not decimal!). Fixes NTVDM start with double-click after 9-10 launches, on ROS and Windows.

svn path=/trunk/; revision=68108
This commit is contained in:
Hermès Bélusca-Maïto 2015-06-12 01:19:19 +00:00
parent 4269196da9
commit 845fdcac41

View file

@ -461,8 +461,8 @@ static VOID WINAPI DosStart(LPWORD Stack)
{
if (wcsncmp(NtVdmArgv[i], L"-i", 2) == 0)
{
/* This is the session ID */
SessionId = wcstoul(NtVdmArgv[i] + 2, NULL, 10);
/* This is the session ID (hex format) */
SessionId = wcstoul(NtVdmArgv[i] + 2, NULL, 16);
/* The VDM hasn't been started from a console, so quit when the task is done */
AcceptCommands = FALSE;