From e6d540d5c8ecf59bbf429b298903eab774be0b00 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Mon, 8 Mar 2010 08:56:40 +0100 Subject: [PATCH] d3dx9_36/tests: Fix contant table header in ctab data. --- dlls/d3dx9_36/tests/shader.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/d3dx9_36/tests/shader.c b/dlls/d3dx9_36/tests/shader.c index 8a2a5b1d809..c49d0892527 100644 --- a/dlls/d3dx9_36/tests/shader.c +++ b/dlls/d3dx9_36/tests/shader.c @@ -43,8 +43,8 @@ static const DWORD simple_ps[] = { static const DWORD shader_with_ctab[] = { 0xfffe0300, /* vs_3_0 */ 0x0002fffe, FCC_TEXT, 0x00000000, /* TEXT comment */ - 0x0006fffe, FCC_CTAB, 0x0000001c, 0x00000000, 0xfffe0300, 0x00000000, /* CTAB comment */ - 0x00000000, + 0x0008fffe, FCC_CTAB, 0x0000001c, 0x00000000, 0xfffe0300, 0x00000000, /* CTAB comment */ + 0x00000000, 0x00000000, 0x00000000, 0x0004fffe, FCC_TEXT, 0x00000000, 0x00000000, 0x00000000, /* TEXT comment */ 0x0000ffff}; /* END */ @@ -111,7 +111,7 @@ static void test_find_shader_comment(void) hr = D3DXFindShaderComment(shader_with_ctab, MAKEFOURCC('C','T','A','B'), &data, &size); ok(hr == D3D_OK, "Got result %x, expected 0 (D3D_OK)\n", hr); ok(data == (LPCVOID)(shader_with_ctab + 6), "Got result %p, expected %p\n", data, shader_with_ctab + 6); - ok(size == 20, "Got result %d, expected 20\n", size); + ok(size == 28, "Got result %d, expected 28\n", size); } static void test_get_shader_constant_table_ex(void) @@ -139,7 +139,7 @@ static void test_get_shader_constant_table_ex(void) if (constant_table) { size = ID3DXConstantTable_GetBufferSize(constant_table); - ok(size == 20, "Got result %x, expected 20\n", size); + ok(size == 28, "Got result %x, expected 28\n", size); data = ID3DXConstantTable_GetBufferPointer(constant_table); ok(!memcmp(data, shader_with_ctab + 6, size), "Retreived wrong CTAB data\n");