<define name="TT_CONFIG_OPTION_BYTECODE_INTERPRETER" />
</if>
<library>ntoskrnl</library>
- <library>ntdll</library>
- <library>hal</library>
+ <library>libcntpr</library>
<directory name="i386">
<file>setjmplongjmp.s</file>
</directory>
PSECTION_OBJECT SectionObject;
ULONG ViewSize = 0;
FT_Fixed XScale, YScale;
- UNICODE_STRING FileNameCopy;
/* Open the font file */
return 0;
}
- RtlDuplicateUnicodeString(RTL_DUPLICATE_UNICODE_STRING_NULL_TERMINATE, FileName, &FileNameCopy);
- FontGDI->Filename = FileNameCopy.Buffer;
+ FontGDI->Filename = ExAllocatePool(PagedPool, FileName->Length + sizeof(WCHAR));
+ if (FontGDI->Filename == NULL)
+ {
+ EngFreeMem(FontGDI);
+ FT_Done_Face(Face);
+ ObDereferenceObject(SectionObject);
+ ExFreePool(Entry);
+ SetLastWin32Error(ERROR_NOT_ENOUGH_MEMORY);
+ return 0;
+ }
+ memcpy(FontGDI->Filename, FileName->Buffer, FileName->Length);
+ FontGDI->Filename[FileName->Length / sizeof(WCHAR)] = L'\0';
FontGDI->face = Face;
/* FIXME: Complete text metrics */
<library>win32k_base</library>
<library>pseh</library>
<library>ntoskrnl</library>
- <library>ntdll</library>
+ <library>libcntpr</library>
<library>hal</library>
<library>freetype</library>
<library>dxguid</library>