[RTL][KERNEL32] Move the STUB printing code to a place where it's actually called

This commit is contained in:
Mark Jansen 2021-05-22 16:33:19 +02:00
parent 1c97b84600
commit b58c3d73ca
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B
2 changed files with 14 additions and 11 deletions

View file

@ -251,6 +251,13 @@ static VOID
DbgPrint("Faulting Address: %8x\n", ExceptionRecord->ExceptionInformation[1]);
}
/* Trace the wine special error and show the modulename and functionname */
if (ExceptionRecord->ExceptionCode == 0x80000100 /* EXCEPTION_WINE_STUB */ &&
ExceptionRecord->NumberParameters == 2)
{
DbgPrint("Missing function: %s!%s\n", (PSZ)ExceptionRecord->ExceptionInformation[0], (PSZ)ExceptionRecord->ExceptionInformation[1]);
}
_dump_context(ContextRecord);
_module_name_from_addr(ExceptionRecord->ExceptionAddress, &StartAddr, szMod, sizeof(szMod));
DbgPrint("Address:\n %8x+%-8x %s\n",