mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[WIN32SS] Improve font loading failure logging
This commit is contained in:
parent
35dc022e14
commit
c057a07d79
1 changed files with 4 additions and 2 deletions
|
@ -1163,10 +1163,12 @@ IntGdiLoadFontsFromMemory(PGDI_LOAD_FONT pLoadFont)
|
||||||
|
|
||||||
if (Error)
|
if (Error)
|
||||||
{
|
{
|
||||||
|
UNICODE_STRING MemoryFont = RTL_CONSTANT_STRING(L"MemoryFont");
|
||||||
|
PUNICODE_STRING PrintFile = pFileName ? pFileName : &MemoryFont;
|
||||||
if (Error == FT_Err_Unknown_File_Format)
|
if (Error == FT_Err_Unknown_File_Format)
|
||||||
DPRINT1("Unknown font file format\n");
|
DPRINT1("Unknown font file format (%wZ)\n", PrintFile);
|
||||||
else
|
else
|
||||||
DPRINT1("Error reading font (FT_Error: %d)\n", Error);
|
DPRINT1("Error reading font (FT_Error: %d, %wZ)\n", Error, PrintFile);
|
||||||
return 0; /* failure */
|
return 0; /* failure */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue