mirror of
https://github.com/reactos/reactos.git
synced 2024-08-27 05:38:41 +00:00
[NTVDM]
Fix INT 21h, AH = 29h to stop scanning the filename when it encounters a space. svn path=/trunk/; revision=67416
This commit is contained in:
parent
cfa300d3a1
commit
716877ae5f
|
@ -1794,7 +1794,7 @@ VOID WINAPI DosInt21h(LPWORD Stack)
|
||||||
|
|
||||||
/* Parse the file name */
|
/* Parse the file name */
|
||||||
i = 0;
|
i = 0;
|
||||||
while ((*FileName >= 0x20) && (i < 8))
|
while ((*FileName > 0x20) && (i < 8))
|
||||||
{
|
{
|
||||||
if (*FileName == '.') break;
|
if (*FileName == '.') break;
|
||||||
else if (*FileName == '*')
|
else if (*FileName == '*')
|
||||||
|
@ -1813,14 +1813,14 @@ VOID WINAPI DosInt21h(LPWORD Stack)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Skip to the extension part */
|
/* Skip to the extension part */
|
||||||
while (*FileName >= 0x20 && *FileName != '.') FileName++;
|
while (*FileName > 0x20 && *FileName != '.') FileName++;
|
||||||
if (*FileName == '.') FileName++;
|
if (*FileName == '.') FileName++;
|
||||||
|
|
||||||
/* Now parse the extension */
|
/* Now parse the extension */
|
||||||
i = 0;
|
i = 0;
|
||||||
FillChar = ' ';
|
FillChar = ' ';
|
||||||
|
|
||||||
while ((*FileName >= 0x20) && (i < 3))
|
while ((*FileName > 0x20) && (i < 3))
|
||||||
{
|
{
|
||||||
if (*FileName == '*')
|
if (*FileName == '*')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue