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/loader/ne/segment.c b/loader/ne/segment.c
index c6e5d72..9d57323 100644
--- a/loader/ne/segment.c
+++ b/loader/ne/segment.c
@@ -623,7 +623,7 @@
{
SEGTABLEENTRY *pSegTable;
WORD hInst, ds, heap;
- CONTEXT context;
+ CONTEXT86 context;
pSegTable = NE_SEG_TABLE( pModule );
@@ -678,7 +678,7 @@
WORD hInst, ds, heap;
FARPROC16 entryPoint;
WORD ordinal;
- CONTEXT context;
+ CONTEXT86 context;
LPBYTE stack = (LPBYTE)CURRENT_STACK16;
if (!(pModule->flags & NE_FFLAGS_BUILTIN) && pModule->expected_version < 0x0400) return;