mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
[NTVDM]
Add echo to INT 21h, function AH = 3Fh. svn path=/branches/ntvdm/; revision=61257
This commit is contained in:
parent
76f1085bdc
commit
7e07cd3ec5
1 changed files with 2 additions and 0 deletions
|
@ -2014,11 +2014,13 @@ VOID WINAPI DosInt21h(LPWORD Stack)
|
||||||
if (getCF()) break;
|
if (getCF()) break;
|
||||||
|
|
||||||
// FIXME: Security checks!
|
// FIXME: Security checks!
|
||||||
|
DosPrintCharacter(Character);
|
||||||
Buffer[Stack[STACK_COUNTER]++] = Character;
|
Buffer[Stack[STACK_COUNTER]++] = Character;
|
||||||
|
|
||||||
if (Character == '\r')
|
if (Character == '\r')
|
||||||
{
|
{
|
||||||
/* Stop on first carriage return */
|
/* Stop on first carriage return */
|
||||||
|
DosPrintCharacter('\n');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue