Author: aandrejevic Date: Sat Apr 25 16:20:39 2015 New Revision: 67416
URL: http://svn.reactos.org/svn/reactos?rev=67416&view=rev Log: [NTVDM] Fix INT 21h, AH = 29h to stop scanning the filename when it encounters a space.
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] Sat Apr 25 16:20:39 2015 @@ -1794,7 +1794,7 @@
/* Parse the file name */ i = 0; - while ((*FileName >= 0x20) && (i < 8)) + while ((*FileName > 0x20) && (i < 8)) { if (*FileName == '.') break; else if (*FileName == '*') @@ -1813,14 +1813,14 @@ }
/* Skip to the extension part */ - while (*FileName >= 0x20 && *FileName != '.') FileName++; + while (*FileName > 0x20 && *FileName != '.') FileName++; if (*FileName == '.') FileName++;
/* Now parse the extension */ i = 0; FillChar = ' ';
- while ((*FileName >= 0x20) && (i < 3)) + while ((*FileName > 0x20) && (i < 3)) { if (*FileName == '*') {