- ExtCreatePen creates a PS_NULL style pen in the LOGPEN Format, use the NULL_PEN StockObject for that matter

- Fixes 24 gdi32 pen winetests

svn path=/trunk/; revision=37661
This commit is contained in:
Gregor Schneider 2008-11-26 15:12:38 +00:00
parent d29825fe8f
commit cab11c6e20

View file

@ -369,17 +369,25 @@ NtGdiExtCreatePen(
}
}
hPen = IntGdiExtCreatePen(dwPenStyle,
ulWidth,
ulBrushStyle,
ulColor,
ulClientHatch,
ulHatch,
dwStyleCount,
pSafeStyle,
cjDIB,
bOldStylePen,
hBrush);
if (dwPenStyle != PS_NULL)
{
hPen = IntGdiExtCreatePen(dwPenStyle,
ulWidth,
ulBrushStyle,
ulColor,
ulClientHatch,
ulHatch,
dwStyleCount,
pSafeStyle,
cjDIB,
bOldStylePen,
hBrush);
}
else
{
hPen = NtGdiGetStockObject(NULL_PEN);
}
if (!hPen && pSafeStyle)
{
ExFreePoolWithTag(pSafeStyle, TAG_PENSTYLES);