kernel32/tests: "none" debugger test needs user interaction

Ge van Geldorp ge at gse.nl
Mon Jan 26 05:21:16 CST 2009


Since the "none" debugger test doesn't set the debug event, Windows
doesn't recognize it as a valid debug process. This means that on exit of
the debugger the original process will show a dialog asking the user what
to do instead of exiting.
I tried various methods to prevent that dialog box from showing up
(NtSetProcessInformation(..., ProcessDefaultHardErrorMode, ...) on the
child, calling CreateRemoteThread() to create a thread in the child that
would call SetErrorMode(), SetUnhandledExceptionHandler() tricks), the
only thing that succeeded was calling TerminateProcess() on the child from
the debugger, but that kind of defeats the purpose of the test.
The only solution I see is only running this test in interactive mode.

---
 dlls/kernel32/tests/debugger.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: e305aee30a4d24387c244fcc84fa572fb40a20af.diff
Type: text/x-patch
Size: 928 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20090126/5a3cb6f4/attachment.bin 


More information about the wine-patches mailing list