mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +00:00
[NTVDM]
Fix the INT 12h handler to call the correct function (DosOpenFile not DosCreateFile). svn path=/branches/ntvdm/; revision=59754
This commit is contained in:
parent
5ffc6554be
commit
e1c4d780c1
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue