Commit eedf3b4d authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

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

parent 895d1b71
......@@ -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;
......
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