mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[warnings] fix integer narrowing
This commit is contained in:
@@ -52,7 +52,8 @@ HGDI_PEN gdi_CreatePen(UINT32 fnPenStyle, UINT32 nWidth, UINT32 crColor, UINT32
|
||||
hPen->objectType = GDIOBJECT_PEN;
|
||||
hPen->style = fnPenStyle;
|
||||
hPen->color = crColor;
|
||||
hPen->width = nWidth;
|
||||
WINPR_ASSERT(nWidth <= INT32_MAX);
|
||||
hPen->width = (int)nWidth;
|
||||
hPen->format = format;
|
||||
hPen->palette = palette;
|
||||
return hPen;
|
||||
|
||||
Reference in New Issue
Block a user