CVS: winex/win32 except.c,1.8,1.9
[email protected] 31 Jul 2007 20:06:59 -0000
| Newsgroups | gmane.comp.emulators.winex.cvs |
|---|---|
| Message-ID | <[email protected]> |
Subject: winex/win32 except.c,1.8,1.9Update of /var/lib/cvsd/cvsroot/winex/win32
In directory agravaine:/tmp/cvs-serv3625/win32
Modified Files:
except.c
Log Message:
Terminate the process after a thread crashes if the exception is unhandled and no debugger is configured; this better matches Windows behaviour and has a better chance of avoiding hung processes after a crash
Index: except.c
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/win32/except.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- except.c 31 Jul 2007 20:00:37 -0000 1.8
+++ except.c 31 Jul 2007 20:06:57 -0000 1.9
@@ -213,6 +213,7 @@
char* format = NULL;
DWORD format_size;
BOOL ret = FALSE;
+ UINT code;
MESSAGE("wine: Unhandled exception, starting debugger...\n");
@@ -294,6 +295,8 @@
"Read the Wine Developers Guide on how to set up winedbg or another debugger\n",
debugstr_a(cmdline), GetLastError());
+ TerminateProcess (GetCurrentProcess (), &code);
+
EXIT:
if (cmdline)
HeapFree(GetProcessHeap(), 0, cmdline);