[1/2] d3dx9/tests: Fix a failure on 64 bits.
Alexandre Julliard
julliard at winehq.org
Tue Oct 12 05:39:50 CDT 2010
Matteo Bruni <matteo.mystral at gmail.com> writes:
> @@ -131,7 +131,9 @@ static void test_get_shader_constant_table_ex(void)
>
> /* With invalid CTAB data */
> hr = D3DXGetShaderConstantTableEx(shader_with_invalid_ctab, 0, &constant_table);
> - ok(hr == D3DXERR_INVALIDDATA, "Got result %x, expected %x (D3DXERR_INVALIDDATA)\n", hr, D3DXERR_INVALIDDATA);
> + /* Native on 64 bit doesn't check for invalid data */
> + ok(hr == D3DXERR_INVALIDDATA || (hr == D3D_OK && sizeof(DWORD) != sizeof(DWORD_PTR)),
> + "Got result %x, expected %x (D3DXERR_INVALIDDATA)\n", hr, D3DXERR_INVALIDDATA);
This doesn't seem to have much to do with 64-bit, it looks more like a
broken implementation.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list