mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:45:50 +00:00
[LDR] Include source dll in static snap failure dprint
This commit is contained in:
parent
782ff23261
commit
2801a8272d
1 changed files with 13 additions and 2 deletions
|
@ -1028,12 +1028,23 @@ FailurePath:
|
||||||
/* Is this a static snap? */
|
/* Is this a static snap? */
|
||||||
if (Static)
|
if (Static)
|
||||||
{
|
{
|
||||||
|
UNICODE_STRING SnapTarget;
|
||||||
|
PLDR_DATA_TABLE_ENTRY LdrEntry;
|
||||||
|
|
||||||
|
/* What was the module we were searching in */
|
||||||
RtlInitAnsiString(&TempString, DllName ? DllName : "Unknown");
|
RtlInitAnsiString(&TempString, DllName ? DllName : "Unknown");
|
||||||
|
|
||||||
|
/* What was the module we were searching for */
|
||||||
|
if (LdrpCheckForLoadedDllHandle(ImportBase, &LdrEntry))
|
||||||
|
SnapTarget = LdrEntry->BaseDllName;
|
||||||
|
else
|
||||||
|
RtlInitUnicodeString(&SnapTarget, L"Unknown");
|
||||||
|
|
||||||
/* Inform the debug log */
|
/* Inform the debug log */
|
||||||
if (IsOrdinal)
|
if (IsOrdinal)
|
||||||
DPRINT1("Failed to snap ordinal %Z!0x%x\n", &TempString, OriginalOrdinal);
|
DPRINT1("Failed to snap ordinal %Z!0x%x for %wZ\n", &TempString, OriginalOrdinal, &SnapTarget);
|
||||||
else
|
else
|
||||||
DPRINT1("Failed to snap %Z!%s\n", &TempString, ImportName);
|
DPRINT1("Failed to snap %Z!%s for %wZ\n", &TempString, ImportName, &SnapTarget);
|
||||||
|
|
||||||
/* These are critical errors. Setup a string for the DLL name */
|
/* These are critical errors. Setup a string for the DLL name */
|
||||||
RtlAnsiStringToUnicodeString(&HardErrorDllName, &TempString, TRUE);
|
RtlAnsiStringToUnicodeString(&HardErrorDllName, &TempString, TRUE);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue