https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c057a07d7960a6debdfe6…
commit c057a07d7960a6debdfe6c597c1a7edd39d3c9c3
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Aug 4 01:55:18 2019 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Aug 4 01:55:18 2019 +0200
[WIN32SS] Improve font loading failure logging
---
win32ss/gdi/ntgdi/freetype.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/win32ss/gdi/ntgdi/freetype.c b/win32ss/gdi/ntgdi/freetype.c
index e953b52db02..fb8741c8d8b 100644
--- a/win32ss/gdi/ntgdi/freetype.c
+++ b/win32ss/gdi/ntgdi/freetype.c
@@ -1163,10 +1163,12 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont)
if (Error)
{
+ UNICODE_STRING MemoryFont = RTL_CONSTANT_STRING(L"MemoryFont");
+ PUNICODE_STRING PrintFile = pFileName ? pFileName : &MemoryFont;
if (Error == FT_Err_Unknown_File_Format)
- DPRINT1("Unknown font file format\n");
+ DPRINT1("Unknown font file format (%wZ)\n", PrintFile);
else
- DPRINT1("Error reading font (FT_Error: %d)\n", Error);
+ DPRINT1("Error reading font (FT_Error: %d, %wZ)\n", Error,
PrintFile);
return 0; /* failure */
}