Author: hbelusca Date: Fri Jun 12 01:19:19 2015 New Revision: 68108
URL: http://svn.reactos.org/svn/reactos?rev=68108&view=rev Log: [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.
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/d... ============================================================================== --- trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dem.c [iso-8859-1] Fri Jun 12 01:19:19 2015 @@ -461,8 +461,8 @@ { 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;