On 22 August 2018 at 14:59, Nikolay Sivov nsivov@codeweavers.com wrote:
- hr = ID2D1RenderTarget_QueryInterface(rt, &IID_ID2D1DeviceContext, (void **)&device_context);
- ok(SUCCEEDED(hr), "Failed to get device context interface, hr %#x.\n", hr);
- ID2D1DeviceContext_GetTarget(device_context, (ID2D1Image **)&bitmap);
- hr = ID2D1Bitmap1_GetSurface(bitmap, &surface);
- ok(FAILED(hr), "Unexpected hr %#x.\n", hr);
Unless the error code isn't stable (in which case, please add a comment to that effect), it probably wouldn't hurt to be more specific about the expected error code.