Fixed a couple of memcpy errors.

oldstable
Huw D M Davies 1999-05-13 18:46:46 +00:00 committed by Alexandre Julliard
parent 79641da5e5
commit 911e19078d
1 changed files with 2 additions and 2 deletions

View File

@ -338,7 +338,7 @@ EMFDRV_Polylinegon( DC *dc, const POINT* pt, INT count, DWORD iType )
}
emr->cptl = count;
memcpy(emr->aptl, pt, size);
memcpy(emr->aptl, pt, count * sizeof(POINTL));
ret = EMFDRV_WriteRecord( dc, &emr->emr );
if(ret)
@ -409,7 +409,7 @@ EMFDRV_PolyPolylinegon( DC *dc, const POINT* pt, const INT* counts, UINT polys,
emr->nPolys = polys;
emr->cptl = cptl;
memcpy(emr->aPolyCounts, counts, polys * sizeof(DWORD));
memcpy(emr->aPolyCounts + polys, pt, cptl * sizeof(POINT));
memcpy(emr->aPolyCounts + polys, pt, cptl * sizeof(POINTL));
ret = EMFDRV_WriteRecord( dc, &emr->emr );
if(ret)
EMFDRV_UpdateBBox( dc, &emr->rclBounds );