allow filemode 2 for PSF files (but ignoring unicode data)

svn path=/trunk/; revision=31946
This commit is contained in:
Christoph von Wittich 2008-01-22 16:21:06 +00:00
parent 98b82a4aeb
commit ba4d75b417

View file

@ -163,7 +163,7 @@ NTSTATUS ExtractFont(UINT CodePage, PUCHAR FontBitField)
{
/* only load fonts with a size of 8
and filemode 0 (256 characters, no unicode_data) */
if ((FileHeader[3] == 8) && (FileHeader[4] == 0))
if ((FileHeader[3] == 8) && ((FileHeader[4] == 0) || (FileHeader[4] == 2)))
{
Status = ZwReadFile(Handle, NULL, NULL, NULL, &IoStatusBlock,
FontBitField, 2048, &ByteOffset, NULL);