gdi32: Pass a NULL user-style array to ExtCreatePen if the user-style count is zero.

This commit is contained in:
Huw Davies 2011-10-28 14:25:48 +01:00 committed by Alexandre Julliard
parent 418424d362
commit 1c1fff557d

View file

@ -945,7 +945,7 @@ BOOL WINAPI PlayEnhMetaFileRecord(
(handletable->objectHandle)[pPen->ihPen] =
ExtCreatePen(pPen->elp.elpPenStyle, pPen->elp.elpWidth, &lb,
pPen->elp.elpNumEntries, pPen->elp.elpStyleEntry);
pPen->elp.elpNumEntries, pPen->elp.elpNumEntries ? pPen->elp.elpStyleEntry : NULL);
break;
}
case EMR_CREATEBRUSHINDIRECT: