Commit a8d2ba9d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Replace some IUnknown_QueryInterface() calls with the specific call

for the object being used.
parent e1143d7d
......@@ -119,7 +119,7 @@ HRESULT AVIFILE_CreateACMStream(REFIID riid, LPVOID *ppv)
pstream->lpVtbl = &iacmst;
hr = IUnknown_QueryInterface((IUnknown*)pstream, riid, ppv);
hr = IAVIStream_QueryInterface((IAVIStream*)pstream, riid, ppv);
if (FAILED(hr))
LocalFree((HLOCAL)pstream);
......
......@@ -249,7 +249,7 @@ HRESULT AVIFILE_CreateAVIFile(REFIID riid, LPVOID *ppv)
pfile->iPersistFile.lpVtbl = &ipersistft;
pfile->iPersistFile.paf = pfile;
hr = IUnknown_QueryInterface((IUnknown*)pfile, riid, ppv);
hr = IAVIFile_QueryInterface((IAVIFile*)pfile, riid, ppv);
if (FAILED(hr))
LocalFree((HLOCAL)pfile);
......
......@@ -81,7 +81,7 @@ static HRESULT AVIFILE_CreateClassFactory(const CLSID *pclsid, const IID *riid,
pClassFactory->dwRef = 0;
memcpy(&pClassFactory->clsid, pclsid, sizeof(pClassFactory->clsid));
hr = IUnknown_QueryInterface((IUnknown*)pClassFactory, riid, ppv);
hr = IClassFactory_QueryInterface((IClassFactory*)pClassFactory, riid, ppv);
if (FAILED(hr)) {
LocalFree((HLOCAL)pClassFactory);
*ppv = NULL;
......
......@@ -135,7 +135,7 @@ HRESULT AVIFILE_CreateICMStream(REFIID riid, LPVOID *ppv)
pstream->lpVtbl = &iicmst;
AVIFILE_Reset(pstream);
hr = IUnknown_QueryInterface((IUnknown*)pstream, riid, ppv);
hr = IAVIStream_QueryInterface((IAVIStream*)pstream, riid, ppv);
if (FAILED(hr))
LocalFree((HLOCAL)pstream);
......
......@@ -236,7 +236,7 @@ HRESULT AVIFILE_CreateWAVFile(REFIID riid, LPVOID *ppv)
pfile->iPersistFile.paf = pfile;
pfile->iAVIStream.paf = pfile;
hr = IUnknown_QueryInterface((IUnknown*)pfile, riid, ppv);
hr = IAVIFile_QueryInterface((IAVIFile*)pfile, riid, ppv);
if (FAILED(hr))
LocalFree((HLOCAL)pfile);
......
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