tests: Don't crash if WRITE_WATCH is broken
This can happen under Wine. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
4b6a1ef40d
commit
b71bc5ef6b
|
@ -49054,6 +49054,12 @@ static void test_write_watch(void)
|
|||
NULL, &IID_ID3D12Resource, (void **)&buffer);
|
||||
ok(hr == S_OK, "Got hr %#x, expected %#x.\n", hr, S_OK);
|
||||
|
||||
if (FAILED(hr))
|
||||
{
|
||||
skip("Failed to create write watch buffer.\n");
|
||||
goto done;
|
||||
}
|
||||
|
||||
/* Do some basic write watch testing... */
|
||||
hr = ID3D12Resource_Map(buffer, 0, NULL, (void**) &map_ptr);
|
||||
ok(hr == S_OK, "Got hr %#x, expected %#x.\n", hr, S_OK);
|
||||
|
|
Loading…
Reference in New Issue