From 742142521ad0f0f3cb82778d8aa0e4803ab34786 Mon Sep 17 00:00:00 2001 From: Jukka Heinonen Date: Mon, 2 Dec 2002 18:58:32 +0000 Subject: [PATCH] Rename old DOS3Call as INT_Int21Handler and make new DOS3Call call directly winedos int21 handler. --- dlls/kernel/kernel32.spec | 2 +- dlls/winedos/int21.c | 13 +++++++++---- msdos/dpmi.c | 21 +++++++++++++++++++++ msdos/int21.c | 14 ++------------ 4 files changed, 33 insertions(+), 17 deletions(-) diff --git a/dlls/kernel/kernel32.spec b/dlls/kernel/kernel32.spec index f65789cc496..5891e5fa643 100644 --- a/dlls/kernel/kernel32.spec +++ b/dlls/kernel/kernel32.spec @@ -986,7 +986,6 @@ @ stdcall AllocCStoDSAlias16(long) AllocCStoDSAlias16 @ stdcall AllocSelectorArray16(long) AllocSelectorArray16 @ stdcall ConvertDialog32To16(ptr long ptr) ConvertDialog32To16 -@ stdcall DOS3Call(ptr) DOS3Call @ stdcall ExitKernel16() ExitKernel16 @ stdcall FarGetOwner16(long) FarGetOwner16 @ stdcall FarSetOwner16(long long) FarSetOwner16 @@ -1057,6 +1056,7 @@ @ cdecl DOSMEM_GetDPMISegments() DOSMEM_GetDPMISegments @ cdecl DOSMEM_Init(long) DOSMEM_Init @ cdecl DRIVE_OpenDevice(long long) DRIVE_OpenDevice +@ stdcall INT_Int21Handler(ptr) INT_Int21Handler @ cdecl LOCAL_Alloc(long long long) LOCAL_Alloc @ cdecl LOCAL_Compact(long long long) LOCAL_Compact @ cdecl LOCAL_CountFree(long) LOCAL_CountFree diff --git a/dlls/winedos/int21.c b/dlls/winedos/int21.c index c52b5680cb5..66e53fdefef 100644 --- a/dlls/winedos/int21.c +++ b/dlls/winedos/int21.c @@ -35,6 +35,11 @@ #include "wine/unicode.h" #include "wine/debug.h" +/* + * FIXME: Delete this reference when all int21 code has been moved to winedos. + */ +extern void WINAPI INT_Int21Handler( CONTEXT86 *context ); + WINE_DEFAULT_DEBUG_CHANNEL(int21); void WINAPI DOSVM_Int21Handler_Ioctl( CONTEXT86 *context ) @@ -65,7 +70,7 @@ void WINAPI DOSVM_Int21Handler_Ioctl( CONTEXT86 *context ) RESET_CFLAG(context); break; default: - DOS3Call( context ); + INT_Int21Handler( context ); } } @@ -79,7 +84,7 @@ void WINAPI DOSVM_Int21Handler( CONTEXT86 *context ) BYTE ascii; if (DOSVM_IsWin16()) { - DOS3Call( context ); + INT_Int21Handler( context ); return; } @@ -200,7 +205,7 @@ void WINAPI DOSVM_Int21Handler( CONTEXT86 *context ) for(i=0; iSegDs, (WORD)context->SegEs, context->EFlags); } - -/*********************************************************************** - * GetSetKernelDOSProc (KERNEL.311) - */ -FARPROC16 WINAPI GetSetKernelDOSProc16(FARPROC16 DosProc) -{ - FIXME("(DosProc=0x%08x): stub\n", (UINT)DosProc); - return NULL; -}