From 70c6666d1e84d2e602e0c51a89ff6aaea7f1d76a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Fri, 20 Mar 2015 12:47:12 +0100 Subject: [PATCH] ddraw/tests: Correct executebuffer offsets. --- dlls/ddraw/tests/ddraw1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/tests/ddraw1.c b/dlls/ddraw/tests/ddraw1.c index ca61f13f272..68821e4f87c 100644 --- a/dlls/ddraw/tests/ddraw1.c +++ b/dlls/ddraw/tests/ddraw1.c @@ -6189,7 +6189,7 @@ static void test_texturemapblend(void) memcpy(exec_desc.lpData, test2_quads, sizeof(test2_quads)); - ptr = ((BYTE *)exec_desc.lpData) + sizeof(test1_quads); + ptr = ((BYTE *)exec_desc.lpData) + sizeof(test2_quads); emit_process_vertices(&ptr, D3DPROCESSVERTICES_COPY, 0, 8); emit_set_rs(&ptr, D3DRENDERSTATE_ALPHABLENDENABLE, FALSE); emit_set_rs(&ptr, D3DRENDERSTATE_TEXTUREHANDLE, texture_handle); @@ -6202,7 +6202,7 @@ static void test_texturemapblend(void) inst_length -= sizeof(test2_quads); hr = IDirect3DExecuteBuffer_Unlock(execute_buffer); ok(SUCCEEDED(hr), "Failed to unlock execute buffer, hr %#x.\n", hr); - set_execute_data(execute_buffer, 8, sizeof(test1_quads), inst_length); + set_execute_data(execute_buffer, 8, sizeof(test2_quads), inst_length); hr = IDirect3DDevice_BeginScene(device); ok(SUCCEEDED(hr), "Failed to begin scene, hr %#x.\n", hr);