mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:31:40 +00:00
allow filemode 2 for PSF files (but ignoring unicode data)
svn path=/trunk/; revision=31946
This commit is contained in:
parent
98b82a4aeb
commit
ba4d75b417
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ NTSTATUS ExtractFont(UINT CodePage, PUCHAR FontBitField)
|
||||||
{
|
{
|
||||||
/* only load fonts with a size of 8
|
/* only load fonts with a size of 8
|
||||||
and filemode 0 (256 characters, no unicode_data) */
|
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,
|
Status = ZwReadFile(Handle, NULL, NULL, NULL, &IoStatusBlock,
|
||||||
FontBitField, 2048, &ByteOffset, NULL);
|
FontBitField, 2048, &ByteOffset, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue