[NTVDM]: The DOS session ID specified in the NTVDM command line is in hexadecimal...
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 12 Jun 2015 01:19:19 +0000 (01:19 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Fri, 12 Jun 2015 01:19:19 +0000 (01:19 +0000)
svn path=/trunk/; revision=68108

reactos/subsystems/mvdm/ntvdm/dos/dem.c

index 281dc79..dabee5d 100644 (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;