Commit 6c4f9ec5 authored by Ziqing Hui's avatar Ziqing Hui Committed by Alexandre Julliard

d3d10/tests: Test NULL device for D3D10CreateEffectFromMemory and D3D10CreateEffectPoolFromMemory.

parent eddf252a
......@@ -118,6 +118,12 @@ static void test_effect_constant_buffer_type(void)
return;
}
if (strcmp(winetest_platform, "wine")) /* Crash on wine. */
{
hr = create_effect(fx_test_ecbt, 0, NULL, NULL, &effect);
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
}
hr = create_effect(fx_test_ecbt, 0, device, NULL, &effect);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
......@@ -7117,6 +7123,12 @@ static void test_effect_pool(void)
todo_wine
ok(hr == E_INVALIDARG, "Got unexpected hr %#lx.\n", hr);
if (strcmp(winetest_platform, "wine")) /* Crash on wine. */
{
hr = create_effect_pool(fx_test_pool, NULL, &pool);
ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#lx.\n", hr);
}
hr = create_effect_pool(fx_test_pool, device, &pool);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment