[WIN32K:NTGDI]

- Avoid using floating point operations in kernel mode.
CORE-10893

svn path=/trunk/; revision=74486
This commit is contained in:
Thomas Faber 2017-05-06 12:18:21 +00:00
parent 26344e7671
commit 80aa7fd7f9
3 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ typedef struct _BRUSHBODY
/* The following members are for PENs only */
LONG lWidth;
FLOAT eWidth;
FLOATOBJ eWidth;
ULONG ulPenStyle;
DWORD *pStyle;
ULONG dwStyleCount;

View file

@ -122,7 +122,7 @@ IntGdiExtCreatePen(
dwWidth = 1;
pbrushPen->lWidth = dwWidth;
pbrushPen->eWidth = (FLOAT)pbrushPen->lWidth;
FLOATOBJ_SetLong(&pbrushPen->eWidth, pbrushPen->lWidth);
pbrushPen->ulPenStyle = dwPenStyle;
pbrushPen->BrushAttr.lbColor = ulColor;
pbrushPen->iBrushStyle = ulBrushStyle;

View file

@ -116,7 +116,7 @@ IntCreateStockPen(DWORD dwPenStyle,
pbrushPen->iHatch = 0;
pbrushPen->lWidth = abs(dwWidth);
pbrushPen->eWidth = (FLOAT)pbrushPen->lWidth;
FLOATOBJ_SetLong(&pbrushPen->eWidth, pbrushPen->lWidth);
pbrushPen->ulPenStyle = dwPenStyle;
pbrushPen->BrushAttr.lbColor = ulColor;
pbrushPen->iBrushStyle = ulBrushStyle;