Changed CONTEXT into CONTEXT86 everywhere we really want an i386
context.
Added #ifdef __i386__ around accesses to 386 registers in the generic
CONTEXT structure.
diff --git a/misc/callback.c b/misc/callback.c
index 567653a..e7d48fb 100644
--- a/misc/callback.c
+++ b/misc/callback.c
@@ -40,7 +40,7 @@
/**********************************************************************
* CALLBACK_CallRegisterProc
*/
-static LONG WINAPI CALLBACK_CallRegisterProc( CONTEXT *context, INT offset)
+static LONG WINAPI CALLBACK_CallRegisterProc( CONTEXT86 *context, INT offset)
{
ERR(relay, "Cannot call a register proc in Winelib\n" );
assert( FALSE );
diff --git a/misc/error.c b/misc/error.c
index 9fed9d0..52be9f7 100644
--- a/misc/error.c
+++ b/misc/error.c
@@ -158,7 +158,7 @@
/***********************************************************************
* HandleParamError (KERNEL.327)
*/
-void WINAPI HandleParamError( CONTEXT *context )
+void WINAPI HandleParamError( CONTEXT86 *context )
{
UINT16 uErr = BX_reg( context );
FARPROC16 lpfn = (FARPROC16)PTR_SEG_OFF_TO_SEGPTR( CS_reg(context),
diff --git a/misc/windebug.c b/misc/windebug.c
index 0e4a01e..e1509fa 100644
--- a/misc/windebug.c
+++ b/misc/windebug.c
@@ -16,7 +16,7 @@
* WinNotify (WINDEBUG.3)
* written without _any_ docu
*/
-void WINAPI WinNotify16(CONTEXT *context)
+void WINAPI WinNotify16(CONTEXT86 *context)
{
FIXME(dll, "(AX=%04x):stub.\n", AX_reg(context));
switch (AX_reg(context))