From db3aba29b626c641d0e63eb5e3a0c3c10cbe3ab7 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Sun, 18 Jul 1999 18:32:23 +0000 Subject: [PATCH] Work-around for compiler bug. --- win32/kernel32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win32/kernel32.c b/win32/kernel32.c index cdd8b97ce18..73d098762a0 100644 --- a/win32/kernel32.c +++ b/win32/kernel32.c @@ -299,7 +299,7 @@ void WINAPI REGS_FUNC(QT_Thunk)( CONTEXT *context ) memcpy(&context16,context,sizeof(context16)); CS_reg(&context16) = HIWORD(EDX_reg(context)); - IP_reg(&context16) = LOWORD(EDX_reg(context)); + EIP_reg(&context16) = LOWORD(EDX_reg(context)); EBP_reg(&context16) = OFFSETOF( NtCurrentTeb()->cur_stack ) + (WORD)&((STACK16FRAME*)0)->bp; @@ -416,7 +416,7 @@ void WINAPI REGS_FUNC(FT_Thunk)( CONTEXT *context ) memcpy(&context16,context,sizeof(context16)); CS_reg(&context16) = HIWORD(callTarget); - IP_reg(&context16) = LOWORD(callTarget); + EIP_reg(&context16) = LOWORD(callTarget); EBP_reg(&context16) = OFFSETOF( NtCurrentTeb()->cur_stack ) + (WORD)&((STACK16FRAME*)0)->bp; @@ -609,7 +609,7 @@ void WINAPI REGS_FUNC(Common32ThkLS)( CONTEXT *context ) DI_reg(&context16) = CX_reg(context); CS_reg(&context16) = HIWORD(EAX_reg(context)); - IP_reg(&context16) = LOWORD(EAX_reg(context)); + EIP_reg(&context16) = LOWORD(EAX_reg(context)); EBP_reg(&context16) = OFFSETOF( NtCurrentTeb()->cur_stack ) + (WORD)&((STACK16FRAME*)0)->bp; @@ -665,7 +665,7 @@ void WINAPI REGS_FUNC(OT_32ThkLSF)( CONTEXT *context ) memcpy(&context16,context,sizeof(context16)); CS_reg(&context16) = HIWORD(EDX_reg(context)); - IP_reg(&context16) = LOWORD(EDX_reg(context)); + EIP_reg(&context16) = LOWORD(EDX_reg(context)); EBP_reg(&context16) = OFFSETOF( NtCurrentTeb()->cur_stack ) + (WORD)&((STACK16FRAME*)0)->bp;