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 (extents + cluster_extent > max_ext) break;
if (nfit) *nfit += cluster_size; if (nfit) *nfit += cluster_size;
for (j = 0; j < cluster_size; ++j) if (dxs)
dxs[i + j] = extents + cluster_extent / cluster_size; {
for (j = 0; j < cluster_size; ++j)
dxs[i + j] = extents + cluster_extent / cluster_size;
}
extents += cluster_extent; extents += cluster_extent;
} }