=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Do not copy surface region when empty box is passed.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Jan 21 11:22:06 CST 2016
Module: wine
Branch: master
Commit: cd243969899b6c8a6531b18b63e5365c43dec487
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd243969899b6c8a6531b18b63e5365c43dec487
Author: Józef Kucia <jkucia at codeweavers.com>
Date: Tue Jan 19 22:28:10 2016 +0100
wined3d: Do not copy surface region when empty box is passed.
Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/wined3d/device.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 87221c3..c058881 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -4004,6 +4004,14 @@ HRESULT CDECL wined3d_device_copy_sub_resource_region(struct wined3d_device *dev
if (src_box)
{
+ if (src_box->front >= src_box->back)
+ {
+ WARN("Invalid box (%u, %u, %u)->(%u, %u, %u) specified.\n",
+ src_box->left, src_box->top, src_box->front,
+ src_box->right, src_box->bottom, src_box->back);
+ return WINED3DERR_INVALIDCALL;
+ }
+
src_rect.left = src_box->left;
src_rect.top = src_box->top;
src_rect.right = src_box->right;
More information about the wine-cvs
mailing list