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:
Joshua Ashton 2021-03-18 15:37:14 +00:00 committed by Hans-Kristian Arntzen
parent 4b6a1ef40d
commit b71bc5ef6b
1 changed files with 6 additions and 0 deletions

View File

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