mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
qcap: Remove superfluous casts.
This commit is contained in:
parent
1b092d7013
commit
6f49003106
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user