https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1a9b50690a241dfec86ed…
commit 1a9b50690a241dfec86ed32dd7ac7a7a7c9a1644
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Wed Oct 3 19:34:14 2018 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Wed Oct 3 19:34:14 2018 +0200
[LDR] Include dllname in snap failure DPRINT.
CORE-15135
---
dll/ntdll/ldr/ldrpe.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dll/ntdll/ldr/ldrpe.c b/dll/ntdll/ldr/ldrpe.c
index 598e3e5477..d0bf128a63 100644
--- a/dll/ntdll/ldr/ldrpe.c
+++ b/dll/ntdll/ldr/ldrpe.c
@@ -1028,14 +1028,14 @@ FailurePath:
/* Is this a static snap? */
if (Static)
{
+ RtlInitAnsiString(&TempString, DllName ? DllName : "Unknown");
/* Inform the debug log */
if (IsOrdinal)
- DPRINT1("Failed to snap ordinal 0x%x\n", OriginalOrdinal);
+ DPRINT1("Failed to snap ordinal %Z!0x%x\n", &TempString,
OriginalOrdinal);
else
- DPRINT1("Failed to snap %s\n", ImportName);
+ DPRINT1("Failed to snap %Z!%s\n", &TempString,
ImportName);
/* These are critical errors. Setup a string for the DLL name */
- RtlInitAnsiString(&TempString, DllName ? DllName : "Unknown");
RtlAnsiStringToUnicodeString(&HardErrorDllName, &TempString, TRUE);
/* Set it as the parameter */