mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
gdi: Fixed buffer overflow in GetCharABCWidthsI.
This commit is contained in:
parent
ded32d5194
commit
0e5f29ba92
@ -2385,7 +2385,7 @@ BOOL WINAPI GetCharABCWidthsI( HDC hdc, UINT firstChar, UINT count,
|
||||
if (ret)
|
||||
{
|
||||
/* convert device units to logical */
|
||||
for( i = firstChar; i <= count; i++, abc++ ) {
|
||||
for( i = 0; i < count; i++, abc++ ) {
|
||||
abc->abcA = INTERNAL_XDSTOWS(dc, abc->abcA);
|
||||
abc->abcB = INTERNAL_XDSTOWS(dc, abc->abcB);
|
||||
abc->abcC = INTERNAL_XDSTOWS(dc, abc->abcC);
|
||||
|
Loading…
Reference in New Issue
Block a user