From eef0744d4384a48c70da3f9863a02ceab08c97bb Mon Sep 17 00:00:00 2001 From: Axel Davy Date: Sun, 2 Oct 2016 12:14:03 +0200 Subject: [PATCH] st/nine: More checks for GetRenderTargetData Fixes a wine test crash Signed-off-by: Axel Davy Reviewed-by: Patrick Rudolph --- src/gallium/state_trackers/nine/device9.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index b094edeb87d..c0a3c3937fb 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -1455,6 +1455,8 @@ NineDevice9_GetRenderTargetData( struct NineDevice9 *This, DBG("This=%p pRenderTarget=%p pDestSurface=%p\n", This, pRenderTarget, pDestSurface); + user_assert(pRenderTarget && pDestSurface, D3DERR_INVALIDCALL); + user_assert(dst->desc.Pool == D3DPOOL_SYSTEMMEM, D3DERR_INVALIDCALL); user_assert(src->desc.Pool == D3DPOOL_DEFAULT, D3DERR_INVALIDCALL); -- 2.30.2