Commit 1c1fff55 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

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

parent 418424d3
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment