[2/3] Don't send EXCEPTION_EXECUTE_FAULT to Windows programs that didn't enable DEP. (try 3)
Michael Karcher
wine at mkarcher.dialup.fu-berlin.de
Sat Aug 15 09:23:03 CDT 2009
This is what Windows does, too. If Data Execution Prevention is not enabled
for a process, Windows does not use the EXCEPTION_EXECUTE_FAULT flag, as
the program might be incompatible with it and expect EXCEPTION_READ_FAULT.
This fixes the non-functional single-stepping in Delphi,
as reported for example in
http://appdb.winehq.org/objectManager.php?sClass=version&iId=22&iTestingId=10795
try3: Use NtQueryInformationProcess to find out whether DEP is enabled.
---
dlls/ntdll/signal_i386.c | 9 +++++++++
dlls/ntdll/tests/exception.c | 6 +-----
2 files changed, 10 insertions(+), 5 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Don-t-send-EXCEPTION_EXECUTE_FAULT-to-Windows-progra.patch
Type: text/x-patch
Size: 1895 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090815/52bb01d6/attachment.bin>
More information about the wine-patches
mailing list