diff --git a/reactos/win32ss/gdi/gdi32/objects/font.c b/reactos/win32ss/gdi/gdi32/objects/font.c index 98cf615eb76..6a9a90698cf 100644 --- a/reactos/win32ss/gdi/gdi32/objects/font.c +++ b/reactos/win32ss/gdi/gdi32/objects/font.c @@ -830,7 +830,7 @@ GetCharABCWidthsA( ret = NtGdiGetCharABCWidthsW( hdc, wstr[0], - (ULONG)count, + wlen - 1, (PWCHAR)wstr, GCABCW_NOFLOAT, (PVOID)lpabc);