Author: aandrejevic Date: Fri May 15 00:39:34 2015 New Revision: 67742
URL: http://svn.reactos.org/svn/reactos?rev=67742&view=rev Log: [NTVDM] - Properly initialize the current directories on startup. - Add a missing colon after the drive letter.
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c
Modified: trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/dos/d... ============================================================================== --- trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c [iso-8859-1] (original) +++ trunk/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c [iso-8859-1] Fri May 15 00:39:34 2015 @@ -62,7 +62,7 @@ /* Find the path to the new current directory */ snprintf(DirectoryPath, DOS_CMDLINE_LENGTH, - "%c\%s", + "%c:\%s", Drive + 'A', &CurrentDirectories[Drive * DOS_DIR_LENGTH]);
@@ -1974,7 +1974,7 @@ DOS_DATA_OFFSET(CurrentDirectories));
/* Clear the current directory buffer */ - RtlZeroMemory(CurrentDirectories, sizeof(CurrentDirectories)); + RtlZeroMemory(CurrentDirectories, NUM_DRIVES * DOS_DIR_LENGTH * sizeof(CHAR));
/* Get the current directory */ if (!GetCurrentDirectoryA(sizeof(CurrentDirectory), CurrentDirectory))