30 Oct
2022
30 Oct
'22
4:51 p.m.
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.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1183#note_12457