Commit 6f490031 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

qcap: Remove superfluous casts.

parent 1b092d70
......@@ -133,9 +133,9 @@ static HRESULT WINAPI IEnumMediaTypesImpl_QueryInterface(IEnumMediaTypes * iface
*ppv = NULL;
if (IsEqualIID(riid, &IID_IUnknown))
*ppv = (LPVOID)iface;
*ppv = iface;
else if (IsEqualIID(riid, &IID_IEnumMediaTypes))
*ppv = (LPVOID)iface;
*ppv = iface;
if (*ppv)
{
......
......@@ -69,9 +69,9 @@ static HRESULT WINAPI IEnumPinsImpl_QueryInterface(IEnumPins * iface, REFIID rii
*ppv = NULL;
if (IsEqualIID(riid, &IID_IUnknown))
*ppv = (LPVOID)iface;
*ppv = iface;
else if (IsEqualIID(riid, &IID_IEnumPins))
*ppv = (LPVOID)iface;
*ppv = iface;
if (*ppv)
{
......
......@@ -568,7 +568,7 @@ static void V4l_FreeFrame(Capture * capBox)
static DWORD WINAPI ReadThread(LPVOID lParam)
{
Capture * capBox = (Capture *)lParam;
Capture * capBox = lParam;
HRESULT hr;
IMediaSample *pSample = NULL;
unsigned long framecount = 0;
......
......@@ -612,7 +612,7 @@ PPB_Load( IPersistPropertyBag * iface, IPropertyBag *pPropBag,
TRACE("%p/%p-> (%p, %p)\n", iface, This, pPropBag, pErrorLog);
V_VT(&var) = VT_I4;
hr = IPropertyBag_Read(pPropBag, (LPCOLESTR)VFWIndex, &var, pErrorLog);
hr = IPropertyBag_Read(pPropBag, VFWIndex, &var, pErrorLog);
if (SUCCEEDED(hr))
{
......@@ -662,7 +662,7 @@ KSP_QueryInterface( IKsPropertySet * iface, REFIID riid, LPVOID * ppv )
if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IKsPropertySet))
{
*ppv = (LPVOID)iface;
*ppv = iface;
IKsPropertySet_AddRef( iface );
return S_OK;
}
......@@ -788,9 +788,9 @@ static HRESULT WINAPI VfwPin_QueryInterface(IPin * iface, REFIID riid, LPVOID *
*ppv = NULL;
if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IPin))
*ppv = (LPVOID)This;
*ppv = This;
else if (IsEqualIID(riid, &IID_IKsPropertySet))
*ppv = (LPVOID)&(This->KSP_VT);
*ppv = &(This->KSP_VT);
else if (IsEqualIID(riid, &IID_IAMStreamConfig))
return IUnknown_QueryInterface((IUnknown *)This->parent, riid, ppv);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment