From 07bf51efbd06f147248aa6e970b0a6655111910c Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 17 Oct 2007 14:18:06 +0200 Subject: [PATCH] user32: Replace a pointer cast by FIELD_OFFSET. --- dlls/user32/winproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index e58d1f0b344..51936afb71d 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -524,7 +524,7 @@ static LRESULT call_window_proc16( HWND16 hwnd, UINT16 msg, WPARAM16 wParam, LPA if (!(context.Eax = GetWindowWord( HWND_32(hwnd), GWLP_HINSTANCE ))) context.Eax = context.SegDs; context.SegCs = SELECTOROF(proc); context.Eip = OFFSETOF(proc); - context.Ebp = OFFSETOF(NtCurrentTeb()->WOW32Reserved) + (WORD)&((STACK16FRAME*)0)->bp; + context.Ebp = OFFSETOF(NtCurrentTeb()->WOW32Reserved) + FIELD_OFFSET(STACK16FRAME, bp); if (lParam) {