From 716877ae5f9bd65cacd70245d2706157e643679d Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sat, 25 Apr 2015 16:20:39 +0000 Subject: [PATCH] [NTVDM] Fix INT 21h, AH = 29h to stop scanning the filename when it encounters a space. svn path=/trunk/; revision=67416 --- reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c b/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c index 6fdac89a3ad..b8cc55b940f 100644 --- a/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c +++ b/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/dos.c @@ -1794,7 +1794,7 @@ VOID WINAPI DosInt21h(LPWORD Stack) /* 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 @@ VOID WINAPI DosInt21h(LPWORD Stack) } /* 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 == '*') { -- 2.17.1