d3drm/tests: Add GetParent NULL pointer test.

oldstable
André Hentschel 2012-03-10 17:57:49 +01:00 committed by Alexandre Julliard
parent f5dfa21115
commit 748bb3e2e7
1 changed files with 5 additions and 0 deletions

View File

@ -278,6 +278,11 @@ static void test_Frame(void)
hr = IDirect3DRM_CreateFrame(pD3DRM, NULL, &pFrameP1);
ok(hr == D3DRM_OK, "Cannot get IDirect3DRMFrame interface (hr = %x)\n", hr);
/* GetParent with NULL pointer */
hr = IDirect3DRMFrame_GetParent(pFrameP1, NULL);
todo_wine ok(hr == D3DRMERR_BADVALUE, "Should have returned D3DRMERR_BADVALUE (hr = %x)\n", hr);
CHECK_REFCOUNT(pFrameP1, 1);
/* [Add/Delete]Child with NULL pointer */
hr = IDirect3DRMFrame_AddChild(pFrameP1, NULL);
todo_wine ok(hr == D3DRMERR_BADOBJECT, "Should have returned D3DRMERR_BADOBJECT (hr = %x)\n", hr);