[PATCH 3/3] ntdll: fix up instruction pointer in context inside raise_exception

Peter Oberndorfer kumbayo84 at arcor.de
Mon Feb 26 16:42:15 CST 2007


---
i had to change GET_IP, else gcc4 would complain about invalid lvalue cast

this patch makes yahoo zuma reach some screen where you get the option to buy the game
probably also fixes http://bugs.winehq.org/show_bug.cgi?id=7063 (civ3 demo)

the book Windows Nt/2000 Native API Reference seems to confirm the fixup also happens in windows.
But the pseudocode in the book places the fixup before sending the exception to the debugger
But the testcases in patch 1 and 2 "prove" the debugger gets a unchanged context for the
first chance exception (unless there is a error in the testcase, which i can't find)

Thanks to Dmitry Timoshkov for finding the pseudo code in the book

 dlls/ntdll/exception.c       |   16 ++++++++++------
 dlls/ntdll/tests/exception.c |   10 +---------
 2 files changed, 11 insertions(+), 15 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: a290e3ca163bf124fd41b99243fc1b346268d95c.diff
Type: text/x-patch
Size: 4141 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070226/bb7f4f47/a290e3ca163bf124fd41b99243fc1b346268d95c-0001.bin


More information about the wine-patches mailing list