mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-01 18:58:29 +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:
parent
07affdfbef
commit
3c59fb2071
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue