Author: tkreuzer
Date: Tue Apr 1 11:57:17 2008
New Revision: 32806
URL:
http://svn.reactos.org/svn/reactos?rev=32806&view=rev
Log:
fix calculation of cwc parameter for NtGdiGetFontResourceInfoInternalW.
Modified:
trunk/reactos/dll/win32/gdi32/objects/text.c
Modified: trunk/reactos/dll/win32/gdi32/objects/text.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/te…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/text.c [iso-8859-1] Tue Apr 1 11:57:17 2008
@@ -428,7 +428,7 @@
bRet = NtGdiGetFontResourceInfoInternalW(
NtFileName.Buffer,
- NtFileName.Length,
+ (NtFileName.Length / sizeof(WCHAR)) + 1,
1,
*pdwBufSize,
pdwBufSize,