[PATCH 1/4] evr/mixer: Fix rectangle scaling helper argument check (Coverity).
Nikolay Sivov
nsivov at codeweavers.com
Mon Nov 8 05:57:00 CST 2021
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/evr/mixer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/evr/mixer.c b/dlls/evr/mixer.c
index bb3f938cb64..b6b4d148f90 100644
--- a/dlls/evr/mixer.c
+++ b/dlls/evr/mixer.c
@@ -1237,7 +1237,7 @@ static HRESULT video_mixer_get_d3d_device(struct video_mixer *mixer, IDirect3DDe
static void video_mixer_scale_rect(RECT *rect, unsigned int width, unsigned int height,
const MFVideoNormalizedRect *scale)
{
- if (rect->left == 0.0f && rect->top == 0.0f && rect->right == 1.0f && rect->bottom == 1.0f)
+ if (scale->left == 0.0f && scale->top == 0.0f && scale->right == 1.0f && scale->bottom == 1.0f)
{
SetRect(rect, 0, 0, width, height);
}
--
2.33.0
More information about the wine-devel
mailing list