[Bug 40414] VirtualDub 1.10.4 crashes when attempting to play video with Directx9/11 backend

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Apr 4 04:18:31 CDT 2016


https://bugs.winehq.org/show_bug.cgi?id=40414

--- Comment #4 from Bruno Jesus <00cpxxx at 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;

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list