mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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? */
|
||||
if (Static)
|
||||
{
|
||||
UNICODE_STRING SnapTarget;
|
||||
PLDR_DATA_TABLE_ENTRY LdrEntry;
|
||||
|
||||
/* What was the module we were searching in */
|
||||
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 */
|
||||
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
|
||||
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 */
|
||||
RtlAnsiStringToUnicodeString(&HardErrorDllName, &TempString, TRUE);
|
||||
|
|
Loading…
Reference in a new issue