[1/4] ntdll/tests: Use an EXCEPTION_REGISTRATION_RECORD array to prevent compiler from reordering variables.

Sebastian Lackner sebastian at fds-team.de
Thu Jun 19 23:23:48 CDT 2014


Unfortunately my last patch (which added RtlUnwind tests) introduced
another weird failure in ntdll exception tests (->
https://testbot.winehq.org/JobDetails.pl?Key=7606 ). I suspect that this
is because of the compiler randomly reordering variables, and thus the
stack frame order is reversed. By declaring the two frames as an array
we should hopefully convince the compiler to leave everything in the
desired order ...

---
 dlls/ntdll/tests/exception.c |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-tests-Use-an-EXCEPTION_REGISTRATION_RECORD-arr.patch
Type: text/x-patch
Size: 3142 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140620/9aae9949/attachment.bin>


More information about the wine-patches mailing list