Commit a01bab77 authored by Andreas Mohr's avatar Andreas Mohr Committed by Alexandre Julliard

Made this file DOSMOD friendly.

parent 5fa740af
......@@ -1069,6 +1069,7 @@ void WINAPI DOS3Call( CONTEXT *context )
LPSTR data = CTX_SEG_OFF_TO_LIN(context,DS_reg(context),DX_reg(context));
LONG length = strchr(data,'$')-data;
_hwrite16( 1, data, length);
AL_reg(context) = '$'; /* yes, '$' (0x24) gets returned in AL */
}
break;
......
......@@ -19,7 +19,7 @@
*/
void WINAPI INT_Int25Handler( CONTEXT *context )
{
BYTE *dataptr = PTR_SEG_OFF_TO_LIN( DS_reg(context), BX_reg(context) );
BYTE *dataptr = CTX_SEG_OFF_TO_LIN( context, DS_reg(context), BX_reg(context) );
DWORD begin, length;
int fd;
......@@ -34,7 +34,8 @@ void WINAPI INT_Int25Handler( CONTEXT *context )
{
begin = *(DWORD *)dataptr;
length = *(WORD *)(dataptr + 4);
dataptr = (BYTE *)PTR_SEG_TO_LIN( *(SEGPTR *)(dataptr + 6) );
dataptr = (BYTE *)CTX_SEG_OFF_TO_LIN( context,
*(WORD *)(dataptr + 8), *(WORD *)(dataptr + 6) );
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment