Michael Stefaniuc : d3dx9/tests: Avoid using an empty rect for a test.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Mar 4 09:48:33 CST 2016
Module: wine
Branch: master
Commit: 46b6f60de14afcd9b610b73c47483091c66e66b7
URL: http://source.winehq.org/git/wine.git/?a=commit;h=46b6f60de14afcd9b610b73c47483091c66e66b7
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Mar 3 15:23:19 2016 +0100
d3dx9/tests: Avoid using an empty rect for a test.
Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/d3dx9_36/tests/surface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/d3dx9_36/tests/surface.c b/dlls/d3dx9_36/tests/surface.c
index 55e3d88..dc95740 100644
--- a/dlls/d3dx9_36/tests/surface.c
+++ b/dlls/d3dx9_36/tests/surface.c
@@ -808,7 +808,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
hr = D3DXLoadSurfaceFromMemory(surf, NULL, &destrect, pixdata, D3DFMT_A8R8G8B8, sizeof(pixdata), NULL, &rect, D3DX_FILTER_NONE, 0);
ok(hr == D3DERR_INVALIDCALL, "D3DXLoadSurfaceFromMemory returned %#x, expected %#x\n", hr, D3DERR_INVALIDCALL);
- SetRect(&destrect, 0, 0, 0, 0); /* left = right, top = bottom */
+ SetRect(&destrect, 1, 2, 1, 2); /* left = right, top = bottom */
hr = D3DXLoadSurfaceFromMemory(surf, NULL, &destrect, pixdata, D3DFMT_A8R8G8B8, sizeof(pixdata), NULL, &rect, D3DX_FILTER_NONE, 0);
/* fails when debug version of d3d9 is used */
ok(hr == D3D_OK || broken(hr == D3DERR_INVALIDCALL), "D3DXLoadSurfaceFromMemory returned %#x, expected %#x\n", hr, D3D_OK);
More information about the wine-cvs
mailing list