mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 11:00:55 +00:00
[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:
parent
4269196da9
commit
845fdcac41
|
@ -461,8 +461,8 @@ static VOID WINAPI DosStart(LPWORD Stack)
|
||||||
{
|
{
|
||||||
if (wcsncmp(NtVdmArgv[i], L"-i", 2) == 0)
|
if (wcsncmp(NtVdmArgv[i], L"-i", 2) == 0)
|
||||||
{
|
{
|
||||||
/* This is the session ID */
|
/* This is the session ID (hex format) */
|
||||||
SessionId = wcstoul(NtVdmArgv[i] + 2, NULL, 10);
|
SessionId = wcstoul(NtVdmArgv[i] + 2, NULL, 16);
|
||||||
|
|
||||||
/* The VDM hasn't been started from a console, so quit when the task is done */
|
/* The VDM hasn't been started from a console, so quit when the task is done */
|
||||||
AcceptCommands = FALSE;
|
AcceptCommands = FALSE;
|
||||||
|
|
Loading…
Reference in a new issue