qedit: Avoid casting a COM object to an iface.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4facdec686
commit
9525b1e2cf
|
@ -1300,7 +1300,8 @@ HRESULT SampleGrabber_create(IUnknown *pUnkOuter, LPVOID *ppv)
|
||||||
else
|
else
|
||||||
obj->outer_unk = &obj->IUnknown_inner;
|
obj->outer_unk = &obj->IUnknown_inner;
|
||||||
|
|
||||||
hr = CoCreateInstance(&CLSID_SeekingPassThru, (IUnknown*)obj, CLSCTX_INPROC_SERVER, &IID_IUnknown, (void**)&obj->seekthru_unk);
|
hr = CoCreateInstance(&CLSID_SeekingPassThru, &obj->IUnknown_inner, CLSCTX_INPROC_SERVER,
|
||||||
|
&IID_IUnknown, (void**)&obj->seekthru_unk);
|
||||||
if(hr)
|
if(hr)
|
||||||
return hr;
|
return hr;
|
||||||
IUnknown_QueryInterface(obj->seekthru_unk, &IID_ISeekingPassThru, (void**)&passthru);
|
IUnknown_QueryInterface(obj->seekthru_unk, &IID_ISeekingPassThru, (void**)&passthru);
|
||||||
|
|
Loading…
Reference in New Issue