gdi32: Pass correct pointer to PolyDraw during EMR_POLYDRAW playback.

Signed-off-by: Shawn M. Chapla <schapla@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Shawn M. Chapla 2020-08-26 19:21:42 -04:00 committed by Alexandre Julliard
parent 666f614f3f
commit 84d2cf02ed
1 changed files with 4 additions and 1 deletions

View File

@ -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;