Nikolay Sivov (@nsivov) commented about dlls/d2d1/device.c:
- return S_OK;
+}
+static HRESULT WINAPI d2d_device_CreateDeviceContext(ID2D1Device1 *iface, D2D1_DEVICE_CONTEXT_OPTIONS options,
ID2D1DeviceContext **context)
+{
- ID2D1DeviceContext1 *context1 = NULL;
- HRESULT hr;
- TRACE("iface %p, options %#x, context %p.\n", iface, options, context);
- if (FAILED(hr = d2d_device_create_device_context(iface, options, &context1))) {
return hr;
- }
- *context = (ID2D1DeviceContext *)context1;
Same as with the first commit - just do a single call, and add a pointer cast, which is appropriate here because it's an out argument.