Fix the INT 12h handler to call the correct function (DosOpenFile not DosCreateFile).


svn path=/branches/ntvdm/; revision=59754
This commit is contained in:
Aleksandar Andrejevic 2013-08-16 19:40:02 +00:00
parent 5ffc6554be
commit e1c4d780c1

View file

@ -1665,10 +1665,10 @@ VOID DosInt21h(LPWORD Stack)
case 0x3D:
{
WORD FileHandle;
WORD ErrorCode = DosCreateFile(&FileHandle,
(LPCSTR)(ULONG_PTR)BaseAddress
+ TO_LINEAR(DataSegment, LOWORD(Edx)),
LOBYTE(Eax));
WORD ErrorCode = DosOpenFile(&FileHandle,
(LPCSTR)(ULONG_PTR)BaseAddress
+ TO_LINEAR(DataSegment, LOWORD(Edx)),
LOBYTE(Eax));
if (ErrorCode == 0)
{