+ if (viewport->d3d_viewport)
+ return D3DRMERR_BADOBJECT;
+
+ IDirect3DRM_AddRef(viewport->d3drm);
+
+ todo_wine ok(ref4 > frame_ref2, "Expected ref4 > frame_ref2, got frame_ref2 = %u, ref4 = %u.\n", frame_ref2, ref4);
+
+ IDirect3DRMDevice3_Release(device3);
+ IDirect3DRMDevice_Release(device1);