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

This commit is contained in:
Ziqing Hui 2022-09-01 12:28:35 +08:00 committed by Alexandre Julliard
parent eddf252aff
commit 6c4f9ec527

View file

@ -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);