1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-01 07:14:31 +00:00

gdi32/text: Handle null partial extents pointer in GetTextExtentExPointW().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56788
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
Nikolay Sivov 2024-06-06 11:28:04 +02:00 committed by Alexandre Julliard
parent 07affdfbef
commit 3c59fb2071

View File

@ -1421,8 +1421,11 @@ BOOL WINAPI GetTextExtentExPointW( HDC hdc, const WCHAR *str, INT count, INT max
if (extents + cluster_extent > max_ext) break;
if (nfit) *nfit += cluster_size;
for (j = 0; j < cluster_size; ++j)
dxs[i + j] = extents + cluster_extent / cluster_size;
if (dxs)
{
for (j = 0; j < cluster_size; ++j)
dxs[i + j] = extents + cluster_extent / cluster_size;
}
extents += cluster_extent;
}