Author: aandrejevic Date: Fri Aug 16 19:40:02 2013 New Revision: 59754
URL: http://svn.reactos.org/svn/reactos?rev=59754&view=rev Log: [NTVDM] Fix the INT 12h handler to call the correct function (DosOpenFile not DosCreateFile).
Modified: branches/ntvdm/subsystems/ntvdm/dos.c
Modified: branches/ntvdm/subsystems/ntvdm/dos.c URL: http://svn.reactos.org/svn/reactos/branches/ntvdm/subsystems/ntvdm/dos.c?rev... ============================================================================== --- branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] (original) +++ branches/ntvdm/subsystems/ntvdm/dos.c [iso-8859-1] Fri Aug 16 19:40:02 2013 @@ -1665,10 +1665,10 @@ 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) {