Commit 84d2cf02 authored by Shawn M. Chapla's avatar Shawn M. Chapla Committed by Alexandre Julliard

gdi32: Pass correct pointer to PolyDraw during EMR_POLYDRAW playback.

parent 666f614f
......@@ -1622,9 +1622,12 @@ BOOL WINAPI PlayEnhMetaFileRecord(
case EMR_POLYDRAW:
{
const EMRPOLYDRAW *lpPolyDraw = (const EMRPOLYDRAW *)mr;
/* NB abTypes array doesn't start at lpPolyDraw->abTypes. It's actually
lpPolyDraw->aptl + lpPolyDraw->cptl. */
PolyDraw( hdc,
(const POINT*)lpPolyDraw->aptl,
lpPolyDraw->abTypes,
(BYTE*)(lpPolyDraw->aptl + lpPolyDraw->cptl),
(INT)lpPolyDraw->cptl );
break;
......
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