CVS: winex/windows winproc.c,1.15,1.16
[email protected] 12 Sep 2007 12:32:48 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/windows winproc.c,1.15,1.16Update of /var/lib/cvsd/cvsroot/winex/windows
In directory agravaine:/tmp/cvs-serv11172/windows
Modified Files:
winproc.c
Log Message:
- changed TEB::cur_stack to TEB::WOW32Reserved. WOW32Reserved is now at offset 0xC0 (cur_stack was at 0x70). The old cur_stack has been renamed to 'unknown70'.
Index: winproc.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/windows/winproc.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- winproc.c 9 Jan 2006 18:15:18 -0000 1.15
+++ winproc.c 12 Sep 2007 12:32:46 -0000 1.16
@@ -203,11 +203,11 @@
/* Window procedures want ax = hInstance, ds = es = ss */
memset(&context, '\0', sizeof(context));
- context.SegDs = context.SegEs = SELECTOROF(teb->cur_stack);
+ context.SegDs = context.SegEs = SELECTOROF(teb->WOW32Reserved);
if (!(context.Eax = GetWindowWord16( hwnd, GWL_HINSTANCE ))) context.Eax = context.SegDs;
context.SegCs = SELECTOROF(proc);
context.Eip = OFFSETOF(proc);
- context.Ebp = OFFSETOF(teb->cur_stack)
+ context.Ebp = OFFSETOF(teb->WOW32Reserved)
+ (WORD)&((STACK16FRAME*)0)->bp;
if (lParam)