https://bugs.winehq.org/show_bug.cgi?id=40414
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Henri Verbeet from comment #3)
(In reply to Bruno Jesus from comment #2)
0044:trace:d3d11:d3d11_device_CreateQuery iface 0x1be1d0, desc 0x32d3f4, query 0x0.
Looks like it passes NULL as "query" argument to d3d11_device_CreateQuery(). That's suspicious, but perhaps we just need to return an error for that case.
Indeed, the following hack makes the app happy:
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index 4e84dad..d6b06b1 100644 --- a/dlls/d3d11/device.c +++ b/dlls/d3d11/device.c @@ -2482,7 +2482,7 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CreateQuery(ID3D11Device *iface, HRESULT hr;
TRACE("iface %p, desc %p, query %p.\n", iface, desc, query); - +if(!query) return S_OK; if (FAILED(hr = d3d_query_create(device, desc, FALSE, &object))) return hr;