From 2ffbd64bafb90f3d48cc5e771f559e41208a1021 Mon Sep 17 00:00:00 2001 From: Alexander Potashev Date: Sat, 20 Dec 2008 04:57:20 +0300 Subject: [PATCH] freetype: NtGdiExtTextOutW Dx fix --- subsystems/win32/win32k/objects/freetype.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/subsystems/win32/win32k/objects/freetype.c b/subsystems/win32/win32k/objects/freetype.c index 0cdc89a..7a06e15 100644 --- a/subsystems/win32/win32k/objects/freetype.c +++ b/subsystems/win32/win32k/objects/freetype.c @@ -3169,12 +3169,12 @@ NtGdiExtTextOutW( if (NULL != UnsafeDx && Count > 0) { - Dx = ExAllocatePoolWithTag(PagedPool, Count * sizeof(INT), TAG_GDITEXT); + Dx = ExAllocatePoolWithTag(PagedPool, 2 * Count * sizeof(INT), TAG_GDITEXT); if (NULL == Dx) { goto fail; } - Status = MmCopyFromCaller(Dx, UnsafeDx, Count * sizeof(INT)); + Status = MmCopyFromCaller(Dx, UnsafeDx, 2 * Count * sizeof(INT)); if (!NT_SUCCESS(Status)) { goto fail; @@ -3629,7 +3629,7 @@ NtGdiExtTextOutW( } else { - TextLeft += Dx[i] << 6; + TextLeft += Dx[2 * i] << 6; // DbgPrint("new TextLeft2: %d\n", TextLeft); } previous = glyph_index; -- 1.6.0.4