gdiplus: Initialize the dead point coordinates in "GpPointF, *ptf" to 0.

Signed-off-by: Pengpeng Dong <dongpengpeng@uniontech.com>
Signed-off-by: Esme Povirk <esme@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Pengpeng Dong 2020-09-10 11:01:20 +08:00 committed by Alexandre Julliard
parent bccd754966
commit 36e6ea9767

View file

@ -323,8 +323,15 @@ static void round_points(POINT *pti, GpPointF *ptf, INT count)
int i;
for(i = 0; i < count; i++){
pti[i].x = gdip_round(ptf[i].X);
pti[i].y = gdip_round(ptf[i].Y);
if(isnan(ptf[i].X))
pti[i].x = 0;
else
pti[i].x = gdip_round(ptf[i].X);
if(isnan(ptf[i].Y))
pti[i].y = 0;
else
pti[i].y = gdip_round(ptf[i].Y);
}
}