Check values passed in to SetWinMetaFileBits, not our local copy.

This commit is contained in:
Mike McCormack 2004-12-21 14:50:07 +00:00 committed by Alexandre Julliard
parent 895d1b7160
commit eedf3b4d7a
1 changed files with 1 additions and 1 deletions

View File

@ -2556,7 +2556,7 @@ HENHMETAFILE WINAPI SetWinMetaFileBits(UINT cbBuffer,
TRACE("mm = %ld %ldx%ld\n", lpmfp->mm, lpmfp->xExt, lpmfp->yExt);
if((lpmfp->mm == MM_ISOTROPIC || lpmfp->mm == MM_ANISOTROPIC) &&
mfp.xExt > 0 && mfp.yExt > 0) {
(lpmfp->xExt > 0) && (lpmfp->yExt > 0)) {
rc.left = rc.top = 0;
rc.right = lpmfp->xExt;
rc.bottom = lpmfp->yExt;