qcap: Remove superfluous casts.

This commit is contained in:
Michael Stefaniuc 2009-01-08 00:37:09 +01:00 committed by Alexandre Julliard
parent 1b092d7013
commit 6f49003106
4 changed files with 9 additions and 9 deletions

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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;

View File

@ -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);