-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Am 2015-08-06 um 00:49 schrieb Aaryaman Vasishta:> + IDirect3DRMDevice *device1; ... hr =
- IDirect3DRMDevice *device1;
... hr = IDirect3DRM_CreateDeviceFromClipper(d3drm1, clipper, &driver, 0, 0, &device1);
- todo_wine ok(hr == D3DRMERR_BADVALUE, "Expected hr == D3DRMERR_BADVALUE, got %x.\n", hr);
- if (SUCCEEDED(hr))
IDirect3DRMDevice_Release(device1);
- ok(hr == D3DRMERR_BADVALUE, "Expected hr == D3DRMERR_BADVALUE, got %x.\n", hr);
- ok(device1 == NULL, "Expected device returned == NULL, got %p.\n", device1);
Set device1 = (IDirect3DRMDevice *)0xdeadbeef before calling CreateDeviceFromClipper, otherwise the device == NULL check isn't worth much at the end. (You don't know if its NULL because IDirect3DRM::CreateDeviceFromClipper set it to NULL or because it happened to randomly contain NULL at the start of the function.