diff --git a/dlls/qcap/enummedia.c b/dlls/qcap/enummedia.c index a4df6b3533..cff4b9fbbc 100644 --- a/dlls/qcap/enummedia.c +++ b/dlls/qcap/enummedia.c @@ -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) { diff --git a/dlls/qcap/enumpins.c b/dlls/qcap/enumpins.c index c57c043fd7..a4b1a9fa06 100644 --- a/dlls/qcap/enumpins.c +++ b/dlls/qcap/enumpins.c @@ -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) { diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c index d4f9417a1b..7a131cd0db 100644 --- a/dlls/qcap/v4l.c +++ b/dlls/qcap/v4l.c @@ -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; diff --git a/dlls/qcap/vfwcapture.c b/dlls/qcap/vfwcapture.c index cfb9487c78..07fba25614 100644 --- a/dlls/qcap/vfwcapture.c +++ b/dlls/qcap/vfwcapture.c @@ -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);