- Fixed the font size in IntGdiAddFontResource.
- Allocate a larger buffer for the font names in IntLoadSystemFonts.
Modified: trunk/reactos/subsys/win32k/objects/text.c
_____
Modified: trunk/reactos/subsys/win32k/objects/text.c
--- trunk/reactos/subsys/win32k/objects/text.c 2005-09-30 15:37:58 UTC
(rev 18169)
+++ trunk/reactos/subsys/win32k/objects/text.c 2005-09-30 16:26:11 UTC
(rev 18170)
@@ -189,7 +189,7 @@
return;
}
- FileName.Buffer = ExAllocatePool(PagedPool, MAX_PATH);
+ FileName.Buffer = ExAllocatePool(PagedPool, MAX_PATH *
sizeof(WCHAR));
if (FileName.Buffer == NULL)
{
ExFreePool(DirInfoBuffer);
@@ -197,7 +197,7 @@
return;
}
FileName.Length = 0;
- FileName.MaximumLength = MAX_PATH;
+ FileName.MaximumLength = MAX_PATH * sizeof(WCHAR);
while (1)
{
@@ -255,7 +255,6 @@
NTSTATUS Status;
HANDLE FileHandle;
OBJECT_ATTRIBUTES ObjectAttributes;
- FILE_STANDARD_INFORMATION FileStdInfo;
PVOID Buffer = NULL;
IO_STATUS_BLOCK Iosb;
INT Error;
@@ -305,7 +304,7 @@
Error = FT_New_Memory_Face(
library,
Buffer,
- FileStdInfo.EndOfFile.u.LowPart,
+ ViewSize,
0,
&Face);
IntUnLockFreeType;
Show replies by date