Thu Sep 11 18:24:56 1997 Philippe De Muyter <phdm@info.ucl.ac.be> * [objects/dc.c] In DC_SetupGCForPatBlt, replace R2_NOT by GXxor with (black xor white). Tue Sep 9 23:04:02 1997 U. Bonnes <bon@elektron.ikp.physik.th-darmstadt.de> * [memory/virtual.c] Do not write debugging info unconditionally to stderr. * [files/profile.c] Call PROFILE_GetSection in PROFILE_GetString for key_name "" too. * [misc/crtdll.c] Many new functions. * [include/windows.h] [windows/winpos.c] ClientToScreen16 doesn't have a return value. Sun Sep 7 10:06:39 1997 Alexandre Julliard <julliard@lrc.epfl.ch> * [misc/main.c] [AUTHORS] Update the list of contributors. Please let me know if I forgot someone. * [if1632/*.spec] [if1632/builtin.c] [tools/build.c] Ordinal base for Win32 DLLs is now computed automatically from the lowest ordinal found. * [include/wintypes.h] WINAPI is now defined as attribute((stdcall)). This will require gcc to compile. * [if1632/thunk.c] Removed Win32 thunks (no longer needed with stdcall). * [if1632/crtdll.spec] [misc/crtdll.c] Make sure we only reference cdecl functions in the spec file. * [objects/dc.c] Use CapNotLast drawing style for 1-pixel wide lines. * [tools/build.c] Added 'double' argument type. Added 'varargs' function type for Win32. Made CallTo16_xxx functions stdcall. Fri Sep 5 14:50:49 1997 Alex Korobka <alex@trantor.pharm.sunysb.edu> * [tools/build.c] [windows/win.c] [windows/event.c] [windows/message.c] More fixes to get message exchange closer to the original. * [misc/spy.c] Message logs now contain window names. * [loader/resource.c] [loader/ne_resource.c] [loader/task.c] [objects/cursoricon.c] [windows/user.c] Added some obscure features to fix memory leaks. Fri Sep 5 00:46:28 1997 Jan Willamowius <jan@janhh.shnet.org> * [if1632/kernel32.spec] [win32/newfns.c] Added stub for UTRegister() and UTUnRegister(). Thu Sep 4 12:03:12 1997 Frans van Dorsselaer <dorssel@rulhmpc49.LeidenUniv.nl> * [controls/edit.c] Allow ASCII codes > 127 in WM_CHAR. Mon Sep 1 17:23:24 1997 Dimitrie O. Paun <dimi@mail.cs.toronto.edu> * [controls/widgets.c] In InitCommonControls, remember the name of the class because lpszClassName was made to point to a local array Added the ProgressBar to the list of implemented controls. Call InitCommonControls from WIDGETS_Init to register all implemented Common Controls. * [include/commctrl.h] Added misc decl for the Progress Bar. * [controls/progress.c] [include/progress.h] First attempt at implementiong the Progress Bar class. * [objects/brush.h] Implementation for GetSysColorBrush[16|32] * [controls/status.c] Use DrawEdge to draw the borders and fill the background * [controls/uitools.c] Added DrawDiagEdge32 and DrawRectEdge32 * [graphics/painting.c] Implement DrawEdge[16|32] Started DrawFrameControl32 Mon Sep 1 10:07:09 1997 Lawson Whitney <lawson_whitney@juno.com> * [misc/comm.c] [include/windows.h] SetCommEventMask returns a SEGPTR. Sun Aug 31 23:28:32 1997 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [loader/pe_image.c][loader/module.c][include/pe_image.h] [include/module.h] Cleaned up the whole Win32 library mess (a bit). * [debugger/stabs.c] If 'wine' has no absolute path and isn't found, check $PATH too. * [misc/ole2nls.c] Some fixes. * [misc/ver.c] Added support for PE style version resources. * [memory/string.c] Check for NULL pointers to _lstr* functions, just as Windows95 does. * [multimedia/time.c] Made list of timers a simple linked list. * [loader/resource.c] Netscape 3 seems to pass NEGATIVE resource Ids (in an unsigned int, yes). Don't know why, fixed it anyway. * [objects/bitmap.c] LoadImageW added. * [include/win.h][windows/win.c] Change wIDmenu from UINT16 to UINT32 and changed the SetWindow(Long|Word) accordingly. Thu Aug 28 19:30:08 1997 Morten Welinder <terra@diku.dk> * [include/windows.h] Add a few more colors defined for Win95. Add a few more brush styles. * [windows/syscolor.c] Add error checks for SYSCOLOR_SetColor, SYSCOLOR_Init, GetSysColor16, GetSysColor32. Add support for above colors. Sun Aug 24 16:22:57 1997 Andrew Taylor <andrew@riscan.com> * [multimedia/mmsystem.c] Changed mmioDescend to use mmio functions for file I/O, neccessary for memory files.
460 lines
14 KiB
C
460 lines
14 KiB
C
/*
|
|
* Copyright 1993 Robert J. Amstadt
|
|
* Copyright 1995 Alexandre Julliard
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include "windows.h"
|
|
#include "winnt.h"
|
|
#include "global.h"
|
|
#include "module.h"
|
|
#include "stackframe.h"
|
|
#include "task.h"
|
|
#include "callback.h"
|
|
#include "xmalloc.h"
|
|
#include "stddebug.h"
|
|
/* #define DEBUG_RELAY */
|
|
#include "debug.h"
|
|
|
|
#if 0
|
|
/* Make make_debug think these were really used */
|
|
dprintf_relay
|
|
#endif
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_Init
|
|
*/
|
|
BOOL32 RELAY_Init(void)
|
|
{
|
|
WORD codesel;
|
|
extern BOOL32 THUNK_Init(void);
|
|
|
|
/* Allocate the code selector for CallTo16 routines */
|
|
|
|
extern void CALLTO16_Start(), CALLTO16_End();
|
|
extern void CALLTO16_Ret_word(), CALLTO16_Ret_long();
|
|
extern int CALLTO32_LargeStack();
|
|
extern DWORD CALLTO16_RetAddr_word, CALLTO16_RetAddr_long;
|
|
|
|
codesel = GLOBAL_CreateBlock( GMEM_FIXED, (void *)CALLTO16_Start,
|
|
(int)CALLTO16_End - (int)CALLTO16_Start,
|
|
0, TRUE, TRUE, FALSE, NULL );
|
|
if (!codesel) return FALSE;
|
|
|
|
/* Patch the return addresses for CallTo16 routines */
|
|
|
|
CALLTO16_RetAddr_word=MAKELONG( (int)CALLTO16_Ret_word-(int)CALLTO16_Start,
|
|
codesel );
|
|
CALLTO16_RetAddr_long=MAKELONG( (int)CALLTO16_Ret_long-(int)CALLTO16_Start,
|
|
codesel );
|
|
|
|
/* Set the CallLargeStack function pointer */
|
|
|
|
IF1632_CallLargeStack = CALLTO32_LargeStack;
|
|
|
|
/* Initialize thunking */
|
|
|
|
return THUNK_Init();
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_DebugCallFrom16
|
|
*/
|
|
void RELAY_DebugCallFrom16( int func_type, char *args,
|
|
void *entry_point, CONTEXT *context )
|
|
{
|
|
STACK16FRAME *frame;
|
|
WORD ordinal;
|
|
char *args16;
|
|
int i;
|
|
|
|
if (!debugging_relay) return;
|
|
|
|
frame = CURRENT_STACK16;
|
|
printf( "Call %s(", BUILTIN_GetEntryPoint16( frame->entry_cs,
|
|
frame->entry_ip,
|
|
&ordinal ));
|
|
args16 = (char *)frame->args;
|
|
for (i = 0; i < strlen(args); i++)
|
|
{
|
|
switch(args[i])
|
|
{
|
|
case 'w':
|
|
case 's':
|
|
args16 += 2;
|
|
break;
|
|
case 'l':
|
|
case 'p':
|
|
case 't':
|
|
case 'T':
|
|
args16 += 4;
|
|
break;
|
|
}
|
|
}
|
|
|
|
while (*args)
|
|
{
|
|
switch(*args)
|
|
{
|
|
case 'w':
|
|
case 's':
|
|
args16 -= 2;
|
|
printf( "0x%04x", *(WORD *)args16 );
|
|
break;
|
|
case 'l':
|
|
args16 -= 4;
|
|
printf( "0x%08x", *(int *)args16 );
|
|
break;
|
|
case 't':
|
|
args16 -= 4;
|
|
printf( "0x%08x", *(int *)args16 );
|
|
if (HIWORD(*(int *)args16))
|
|
printf( " \"%s\"", (char *)PTR_SEG_TO_LIN(*(int *)args16) );
|
|
break;
|
|
case 'p':
|
|
args16 -= 4;
|
|
printf( "%04x:%04x", *(WORD *)(args16+2), *(WORD *)args16 );
|
|
break;
|
|
case 'T':
|
|
args16 -= 4;
|
|
printf( "%04x:%04x", *(WORD *)(args16+2), *(WORD *)args16 );
|
|
if (HIWORD(*(int *)args16))
|
|
printf( " \"%s\"", (char *)PTR_SEG_TO_LIN(*(int *)args16) );
|
|
break;
|
|
}
|
|
args++;
|
|
if (*args) printf( "," );
|
|
}
|
|
printf( ") ret=%04x:%04x ds=%04x\n", frame->cs, frame->ip, frame->ds );
|
|
|
|
if (func_type == 2) /* register function */
|
|
printf( " AX=%04x BX=%04x CX=%04x DX=%04x SI=%04x DI=%04x ES=%04x EFL=%08lx\n",
|
|
AX_reg(context), BX_reg(context), CX_reg(context),
|
|
DX_reg(context), SI_reg(context), DI_reg(context),
|
|
(WORD)ES_reg(context), EFL_reg(context) );
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_DebugCallFrom16Ret
|
|
*/
|
|
void RELAY_DebugCallFrom16Ret( int func_type, int ret_val, CONTEXT *context)
|
|
{
|
|
STACK16FRAME *frame;
|
|
WORD ordinal;
|
|
|
|
if (!debugging_relay) return;
|
|
frame = CURRENT_STACK16;
|
|
printf( "Ret %s() ", BUILTIN_GetEntryPoint16( frame->entry_cs,
|
|
frame->entry_ip,
|
|
&ordinal ));
|
|
switch(func_type)
|
|
{
|
|
case 0: /* long */
|
|
printf( "retval=0x%08x ret=%04x:%04x ds=%04x\n",
|
|
ret_val, frame->cs, frame->ip, frame->ds );
|
|
break;
|
|
case 1: /* word */
|
|
printf( "retval=0x%04x ret=%04x:%04x ds=%04x\n",
|
|
ret_val & 0xffff, frame->cs, frame->ip, frame->ds );
|
|
break;
|
|
case 2: /* regs */
|
|
printf( "retval=none ret=%04x:%04x ds=%04x\n",
|
|
frame->cs, frame->ip, frame->ds );
|
|
printf( " AX=%04x BX=%04x CX=%04x DX=%04x SI=%04x DI=%04x ES=%04x EFL=%08lx\n",
|
|
AX_reg(context), BX_reg(context), CX_reg(context),
|
|
DX_reg(context), SI_reg(context), DI_reg(context),
|
|
(WORD)ES_reg(context), EFL_reg(context) );
|
|
break;
|
|
}
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_Unimplemented16
|
|
*
|
|
* This function is called for unimplemented 16-bit entry points (declared
|
|
* as 'stub' in the spec file).
|
|
*/
|
|
void RELAY_Unimplemented16(void)
|
|
{
|
|
WORD ordinal;
|
|
STACK16FRAME *frame = CURRENT_STACK16;
|
|
fprintf(stderr,"No handler for Win16 routine %s (called from %04x:%04x)\n",
|
|
BUILTIN_GetEntryPoint16(frame->entry_cs,frame->entry_ip,&ordinal),
|
|
frame->cs, frame->ip );
|
|
TASK_KillCurrentTask(1);
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_Unimplemented32
|
|
*
|
|
* This function is called for unimplemented 32-bit entry points (declared
|
|
* as 'stub' in the spec file).
|
|
* (The args are the same than for RELAY_DebugCallFrom32).
|
|
*/
|
|
void RELAY_Unimplemented32( int nb_args, void *relay_addr,
|
|
void *entry_point, int ebp, int ret_addr )
|
|
{
|
|
fprintf( stderr, "No handler for Win32 routine %s (called from %08x)\n",
|
|
BUILTIN_GetEntryPoint32( relay_addr ), ret_addr );
|
|
TASK_KillCurrentTask(1);
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_DebugCallTo16
|
|
*
|
|
* 'stack' points to the called function address on the 32-bit stack.
|
|
* Stack layout:
|
|
* ... ...
|
|
* (stack+8) arg2
|
|
* (stack+4) arg1
|
|
* (stack) func to call
|
|
*/
|
|
void RELAY_DebugCallTo16( int* stack, int nb_args )
|
|
{
|
|
if (!debugging_relay) return;
|
|
|
|
if (nb_args == -1) /* Register function */
|
|
{
|
|
CONTEXT *context = *(CONTEXT **)stack;
|
|
printf( "CallTo16(func=%04lx:%04x,ds=%04lx)\n",
|
|
CS_reg(context), IP_reg(context), DS_reg(context) );
|
|
printf( " AX=%04x BX=%04x CX=%04x DX=%04x SI=%04x DI=%04x BP=%04x ES=%04x\n",
|
|
AX_reg(context), BX_reg(context), CX_reg(context),
|
|
DX_reg(context), SI_reg(context), DI_reg(context),
|
|
BP_reg(context), (WORD)ES_reg(context) );
|
|
}
|
|
else
|
|
{
|
|
printf( "CallTo16(func=%04x:%04x,ds=%04x",
|
|
HIWORD(stack[0]), LOWORD(stack[0]), CURRENT_DS );
|
|
stack++;
|
|
while (nb_args--) printf( ",0x%04x", *stack++ );
|
|
printf( ")\n" );
|
|
}
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_DebugCallFrom32
|
|
*
|
|
* 'stack' points to the saved ebp on the stack.
|
|
* Stack layout:
|
|
* ... ...
|
|
* (stack+12) arg2
|
|
* (stack+8) arg1
|
|
* (stack+4) ret addr
|
|
* (stack) ebp
|
|
* (stack-4) entry point
|
|
* (stack-8) relay addr
|
|
*/
|
|
void RELAY_DebugCallFrom32( int *stack, int nb_args )
|
|
{
|
|
int *parg, i;
|
|
|
|
if (!debugging_relay) return;
|
|
printf( "Call %s(", BUILTIN_GetEntryPoint32( (void *)stack[-2] ));
|
|
for (i = nb_args & 0x7fffffff, parg = &stack[2]; i; parg++, i--)
|
|
{
|
|
printf( "%08x", *parg );
|
|
if (i > 1) printf( "," );
|
|
}
|
|
printf( ") ret=%08x\n", stack[1] );
|
|
if (nb_args & 0x80000000) /* Register function */
|
|
{
|
|
CONTEXT *context = (CONTEXT *)((BYTE *)stack - sizeof(CONTEXT) - 8);
|
|
printf( " EAX=%08lx EBX=%08lx ECX=%08lx EDX=%08lx ESI=%08lx EDI=%08lx\n",
|
|
context->Eax, context->Ebx, context->Ecx, context->Edx,
|
|
context->Esi, context->Edi );
|
|
printf( " EBP=%08lx ESP=%08lx EIP=%08lx DS=%04lx ES=%04lx FS=%04lx GS=%04lx EFL=%08lx\n",
|
|
context->Ebp, context->Esp, context->Eip, context->SegDs,
|
|
context->SegEs, context->SegFs, context->SegGs,
|
|
context->EFlags );
|
|
}
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_DebugCallFrom32Ret
|
|
*
|
|
* 'stack' points to the saved ebp on the stack.
|
|
* Stack layout:
|
|
* ... ...
|
|
* (stack+12) arg2
|
|
* (stack+8) arg1
|
|
* (stack+4) ret addr
|
|
* (stack) ebp
|
|
* (stack-4) entry point
|
|
* (stack-8) relay addr
|
|
*/
|
|
void RELAY_DebugCallFrom32Ret( int *stack, int nb_args, int ret_val )
|
|
{
|
|
if (!debugging_relay) return;
|
|
printf( "Ret %s() retval=%08x ret=%08x\n",
|
|
BUILTIN_GetEntryPoint32( (void *)stack[-2] ), ret_val, stack[1] );
|
|
if (nb_args & 0x80000000) /* Register function */
|
|
{
|
|
CONTEXT *context = (CONTEXT *)((BYTE *)stack - sizeof(CONTEXT) - 8);
|
|
printf( " EAX=%08lx EBX=%08lx ECX=%08lx EDX=%08lx ESI=%08lx EDI=%08lx\n",
|
|
context->Eax, context->Ebx, context->Ecx, context->Edx,
|
|
context->Esi, context->Edi );
|
|
printf( " EBP=%08lx ESP=%08lx EIP=%08lx DS=%04lx ES=%04lx FS=%04lx GS=%04lx EFL=%08lx\n",
|
|
context->Ebp, context->Esp, context->Eip, context->SegDs,
|
|
context->SegEs, context->SegFs, context->SegGs,
|
|
context->EFlags );
|
|
}
|
|
}
|
|
|
|
|
|
/***********************************************************************
|
|
* RELAY_DebugCallTo32
|
|
*/
|
|
void RELAY_DebugCallTo32( unsigned int func, int nbargs, unsigned int arg1 )
|
|
{
|
|
unsigned int *argptr;
|
|
|
|
if (!debugging_relay) return;
|
|
|
|
printf( "CallTo32(func=%08x", func );
|
|
for (argptr = &arg1; nbargs; nbargs--, argptr++)
|
|
printf( ",%08x", *argptr );
|
|
printf( ")\n" );
|
|
}
|
|
|
|
|
|
/**********************************************************************
|
|
* Catch (KERNEL.55)
|
|
*/
|
|
INT16 WINAPI Catch( LPCATCHBUF lpbuf )
|
|
{
|
|
STACK16FRAME *pFrame = CURRENT_STACK16;
|
|
|
|
/* Note: we don't save the current ss, as the catch buffer is */
|
|
/* only 9 words long. Hopefully no one will have the silly */
|
|
/* idea to change the current stack before calling Throw()... */
|
|
|
|
/* Windows uses:
|
|
* lpbuf[0] = ip
|
|
* lpbuf[1] = cs
|
|
* lpbuf[2] = sp
|
|
* lpbuf[3] = bp
|
|
* lpbuf[4] = si
|
|
* lpbuf[5] = di
|
|
* lpbuf[6] = ds
|
|
* lpbuf[7] = unused
|
|
* lpbuf[8] = ss
|
|
*/
|
|
/* FIXME: we need to save %si and %di */
|
|
|
|
lpbuf[0] = pFrame->ip;
|
|
lpbuf[1] = pFrame->cs;
|
|
lpbuf[2] = LOWORD(pFrame->saved_ss_sp);
|
|
lpbuf[3] = pFrame->bp;
|
|
lpbuf[4] = LOWORD(IF1632_Saved32_esp);
|
|
lpbuf[5] = HIWORD(IF1632_Saved32_esp);
|
|
lpbuf[6] = pFrame->ds;
|
|
lpbuf[7] = OFFSETOF(IF1632_Saved16_ss_sp);
|
|
lpbuf[8] = HIWORD(pFrame->saved_ss_sp);
|
|
return 0;
|
|
}
|
|
|
|
|
|
/**********************************************************************
|
|
* Throw (KERNEL.56)
|
|
*/
|
|
INT16 WINAPI Throw( LPCATCHBUF lpbuf, INT16 retval )
|
|
{
|
|
STACK16FRAME *pFrame;
|
|
WORD es = CURRENT_STACK16->es;
|
|
|
|
IF1632_Saved16_ss_sp = MAKELONG( lpbuf[7] - sizeof(WORD),
|
|
HIWORD(IF1632_Saved16_ss_sp) );
|
|
IF1632_Saved32_esp = MAKELONG( lpbuf[4], lpbuf[5] );
|
|
pFrame = CURRENT_STACK16;
|
|
pFrame->saved_ss_sp = MAKELONG( lpbuf[2], lpbuf[8] );
|
|
pFrame->ds = lpbuf[6];
|
|
pFrame->bp = lpbuf[3];
|
|
pFrame->ip = lpbuf[0];
|
|
pFrame->cs = lpbuf[1];
|
|
pFrame->es = es;
|
|
if (debugging_relay) /* Make sure we have a valid entry point address */
|
|
{
|
|
static FARPROC16 entryPoint = NULL;
|
|
|
|
if (!entryPoint) /* Get entry point for Throw() */
|
|
entryPoint = MODULE_GetEntryPoint( GetModuleHandle16("KERNEL"),
|
|
56 );
|
|
pFrame->entry_cs = SELECTOROF(entryPoint);
|
|
pFrame->entry_ip = OFFSETOF(entryPoint);
|
|
}
|
|
return retval;
|
|
}
|
|
|
|
/**********************************************************************
|
|
* CallProc32W (KERNEL.56)
|
|
*/
|
|
DWORD /*WINAPI*/ WIN16_CallProc32W()
|
|
{
|
|
DWORD *win_stack = (DWORD *)CURRENT_STACK16->args;
|
|
DWORD nrofargs = win_stack[0];
|
|
DWORD argconvmask = win_stack[1];
|
|
FARPROC32 proc32 = (FARPROC32)win_stack[2];
|
|
DWORD *args,ret;
|
|
STACK16FRAME stf16;
|
|
int i;
|
|
|
|
fprintf(stderr,"CallProc32W(%ld,%ld,%p,args[",nrofargs,argconvmask,proc32);
|
|
args = (DWORD*)xmalloc(sizeof(DWORD)*nrofargs);
|
|
for (i=nrofargs;i--;) {
|
|
if (argconvmask & (1<<i)) {
|
|
args[nrofargs-i-1] = (DWORD)PTR_SEG_TO_LIN(win_stack[3+i]);
|
|
fprintf(stderr,"%08lx(%p),",win_stack[3+i],PTR_SEG_TO_LIN(win_stack[3+i]));
|
|
} else {
|
|
args[nrofargs-i-1] = win_stack[3+i];
|
|
fprintf(stderr,"%ld,",win_stack[3+i]);
|
|
}
|
|
}
|
|
fprintf(stderr,"]) - ");
|
|
switch (nrofargs) {
|
|
case 0: ret = CallTo32_0(proc32);
|
|
break;
|
|
case 1: ret = CallTo32_1(proc32,args[0]);
|
|
break;
|
|
case 2: ret = CallTo32_2(proc32,args[0],args[1]);
|
|
break;
|
|
case 3: ret = CallTo32_3(proc32,args[0],args[1],args[2]);
|
|
break;
|
|
case 4: ret = CallTo32_4(proc32,args[0],args[1],args[2],args[3]);
|
|
break;
|
|
case 5: ret = CallTo32_5(proc32,args[0],args[1],args[2],args[3],args[4]);
|
|
break;
|
|
case 6: ret = CallTo32_6(proc32,args[0],args[1],args[2],args[3],args[4],args[5]);
|
|
break;
|
|
case 7: ret = CallTo32_7(proc32,args[0],args[1],args[2],args[3],args[4],args[5],args[6]);
|
|
break;
|
|
default:
|
|
/* FIXME: should go up to 32 arguments */
|
|
fprintf(stderr,"CallProc32W: unsupported number of arguments %ld, please report.\n",nrofargs);
|
|
ret = 0;
|
|
break;
|
|
}
|
|
/* POP nrofargs DWORD arguments and 3 DWORD parameters */
|
|
/* FIXME: this is a BAD hack, but I don't see any other way to
|
|
* pop a variable number of arguments. -MM
|
|
* The -2 in the size is for not copying WORD args[0] (which would
|
|
* overwrite the top WORD on the return stack)
|
|
*/
|
|
memcpy(&stf16,CURRENT_STACK16,sizeof(stf16)-2);
|
|
IF1632_Saved16_ss_sp += (3+nrofargs)*sizeof(DWORD);
|
|
memcpy(CURRENT_STACK16,&stf16,sizeof(stf16)-2);
|
|
|
|
fprintf(stderr,"returns %08lx\n",ret);
|
|
free(args);
|
|
return ret;
|
|
}
|