From: Aleksey Bragin Date: Mon, 19 Oct 2009 21:42:27 +0000 (+0000) Subject: Daniel Zimmermann X-Git-Tag: ReactOS-0.3.11~383 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=3fcf38a55e1bb95a607f8fb9ee8cdd530ea5e4e3 Daniel Zimmermann - Print module and function name when a wine unimplemented function exception is raised. See issue #4546 for more details. svn path=/trunk/; revision=43629 --- diff --git a/reactos/dll/win32/kernel32/except/except.c b/reactos/dll/win32/kernel32/except/except.c index 7dcbfd9b191..e7a765c07ad 100644 --- a/reactos/dll/win32/kernel32/except/except.c +++ b/reactos/dll/win32/kernel32/except/except.c @@ -395,7 +395,18 @@ RaiseException(IN DWORD dwExceptionCode, { DPRINT1("Delphi Exception at address: %p\n", ExceptionRecord.ExceptionInformation[0]); DPRINT1("Exception-Object: %p\n", ExceptionRecord.ExceptionInformation[1]); - DPRINT1("Exception text: %s\n", ExceptionRecord.ExceptionInformation[2]); + DPRINT1("Exception text: %s\n", ExceptionRecord.ExceptionInformation[2]); + } + + /* Trace the wine special error and show the modulename and functionname */ + if (dwExceptionCode == 0x80000100 /*EXCEPTION_WINE_STUB*/) + { + /* Numbers of parameter must be equal to two */ + if (ExceptionRecord.NumberParameters == 2) + { + DPRINT1("Missing function in : %s\n", ExceptionRecord.ExceptionInformation[0]); + DPRINT1("with the functionname : %s\n", ExceptionRecord.ExceptionInformation[1]); + } } /* Raise the exception */