mirror of
https://github.com/reactos/reactos.git
synced 2024-09-09 12:20:21 +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:
|
case 0x3D:
|
||||||
{
|
{
|
||||||
WORD FileHandle;
|
WORD FileHandle;
|
||||||
WORD ErrorCode = DosCreateFile(&FileHandle,
|
WORD ErrorCode = DosOpenFile(&FileHandle,
|
||||||
(LPCSTR)(ULONG_PTR)BaseAddress
|
(LPCSTR)(ULONG_PTR)BaseAddress
|
||||||
+ TO_LINEAR(DataSegment, LOWORD(Edx)),
|
+ TO_LINEAR(DataSegment, LOWORD(Edx)),
|
||||||
LOBYTE(Eax));
|
LOBYTE(Eax));
|
||||||
|
|
||||||
if (ErrorCode == 0)
|
if (ErrorCode == 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue