Author: tfaber Date: Wed Apr 19 10:33:58 2017 New Revision: 74372
URL: http://svn.reactos.org/svn/reactos?rev=74372&view=rev Log: [GDI32] - Use the number of WCHARs, not the number of ANSI chars in GetCharABCWidthsA. Fixes stack corruption when running gdi32_winetest:font CORE-11474
Modified: trunk/reactos/win32ss/gdi/gdi32/objects/font.c
Modified: trunk/reactos/win32ss/gdi/gdi32/objects/font.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/gdi32/objects/f... ============================================================================== --- trunk/reactos/win32ss/gdi/gdi32/objects/font.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/gdi/gdi32/objects/font.c [iso-8859-1] Wed Apr 19 10:33:58 2017 @@ -830,7 +830,7 @@
ret = NtGdiGetCharABCWidthsW( hdc, wstr[0], - (ULONG)count, + wlen - 1, (PWCHAR)wstr, GCABCW_NOFLOAT, (PVOID)lpabc);