[WIN32SS] Improve font loading failure logging

This commit is contained in:
Mark Jansen 2019-08-04 01:55:18 +02:00
parent 35dc022e14
commit c057a07d79
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -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 */
}