dlls/kernel32/system.c: CONTEXT86.Ebp is DWORD, not WORD

Gerald Pfeifer gerald at pfeifer.com
Thu Oct 4 20:02:57 CDT 2007


On Wed, 3 Oct 2007, Gerald Pfeifer wrote:
> ChangeLog:
> CONTEXT86.Ebp is DWORD, not WORD.  Fix cast.

And more of the some, over here.

Gerald

Index: ne_segment.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel32/ne_segment.c,v
retrieving revision 1.3
diff -u -3 -p -r1.3 ne_segment.c
--- ne_segment.c	1 Nov 2006 13:10:12 -0000	1.3
+++ ne_segment.c	3 Oct 2007 11:17:08 -0000
@@ -694,7 +694,7 @@ static BOOL NE_InitDLL( NE_MODULE *pModu
     context.SegGs = wine_get_gs();
     context.SegCs = SEL(pSegTable[SELECTOROF(pModule->ne_csip)-1].hSeg);
     context.Eip   = OFFSETOF(pModule->ne_csip);
-    context.Ebp   = OFFSETOF(NtCurrentTeb()->WOW32Reserved) + (WORD)&((STACK16FRAME*)0)->bp;
+    context.Ebp   = OFFSETOF(NtCurrentTeb()->WOW32Reserved) + (DWORD)&((STACK16FRAME*)0)->bp;
 
     pModule->ne_csip = 0;  /* Don't initialize it twice */
     TRACE_(dll)("Calling LibMain for %.*s, cs:ip=%04x:%04x ds=%04x di=%04x cx=%04x\n",
@@ -799,7 +799,7 @@ static void NE_CallDllEntryPoint( NE_MOD
         context.SegGs = wine_get_gs();
         context.SegCs = HIWORD(entryPoint);
         context.Eip   = LOWORD(entryPoint);
-        context.Ebp   = OFFSETOF(NtCurrentTeb()->WOW32Reserved) + (WORD)&((STACK16FRAME*)0)->bp;
+        context.Ebp   = OFFSETOF(NtCurrentTeb()->WOW32Reserved) + (DWORD)&((STACK16FRAME*)0)->bp;
 
         args[7] = HIWORD(dwReason);
         args[6] = LOWORD(dwReason);



More information about the wine-patches mailing list