ntdll: Add exception tests for RtlUnwind on i386.

Sebastian Lackner sebastian at fds-team.de
Thu Jun 19 08:00:33 CDT 2014


This patch adds a couple of simple tests for RtlUnwind() on i386. The
assembler-wrapper is required since Windows doesn't guarantee that
ebx/esi/edi is preserved.

Main reason for this patch was that I wondered, if it is correct, that
Wine ignores the targetIp argument passed in RtlUnwind(), but this seems
to be to correct and matches the windows implementation. What
unfortunately doesn't match is the behaviour when doing an exit-unwind
(Windows always seems to terminates the app, even if an vectored
exception handler is installed, Wine does nothing and continues
execution in the next line). I'll add some more patches when I've
figured out a way to write a unit-test for that without crashing the app ;)

---
 dlls/ntdll/tests/exception.c |   80
++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 80 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Add-exception-tests-for-RtlUnwind-on-i386.patch
Type: text/x-patch
Size: 5733 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140619/922dee34/attachment-0001.bin>


More information about the wine-patches mailing list