Commit b92ea61e authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mstask: Call interface methods properly.

parent 955e27d0
...@@ -56,14 +56,14 @@ static HRESULT WINAPI MSTASK_IClassFactory_QueryInterface( ...@@ -56,14 +56,14 @@ static HRESULT WINAPI MSTASK_IClassFactory_QueryInterface(
return E_NOINTERFACE; return E_NOINTERFACE;
} }
static ULONG WINAPI MSTASK_IClassFactory_AddRef(LPCLASSFACTORY iface) static ULONG WINAPI MSTASK_IClassFactory_AddRef(IClassFactory *face)
{ {
TRACE("\n"); TRACE("\n");
InterlockedIncrement(&dll_ref); InterlockedIncrement(&dll_ref);
return 2; return 2;
} }
static ULONG WINAPI MSTASK_IClassFactory_Release(LPCLASSFACTORY iface) static ULONG WINAPI MSTASK_IClassFactory_Release(IClassFactory *iface)
{ {
TRACE("\n"); TRACE("\n");
InterlockedDecrement(&dll_ref); InterlockedDecrement(&dll_ref);
...@@ -71,8 +71,8 @@ static ULONG WINAPI MSTASK_IClassFactory_Release(LPCLASSFACTORY iface) ...@@ -71,8 +71,8 @@ static ULONG WINAPI MSTASK_IClassFactory_Release(LPCLASSFACTORY iface)
} }
static HRESULT WINAPI MSTASK_IClassFactory_CreateInstance( static HRESULT WINAPI MSTASK_IClassFactory_CreateInstance(
LPCLASSFACTORY iface, IClassFactory *iface,
LPUNKNOWN pUnkOuter, IUnknown *pUnkOuter,
REFIID riid, REFIID riid,
LPVOID *ppvObj) LPVOID *ppvObj)
{ {
...@@ -89,21 +89,21 @@ static HRESULT WINAPI MSTASK_IClassFactory_CreateInstance( ...@@ -89,21 +89,21 @@ static HRESULT WINAPI MSTASK_IClassFactory_CreateInstance(
if (FAILED(res)) if (FAILED(res))
return res; return res;
res = ITaskScheduler_QueryInterface(punk, riid, ppvObj); res = IUnknown_QueryInterface(punk, riid, ppvObj);
ITaskScheduler_Release(punk); IUnknown_Release(punk);
return res; return res;
} }
static HRESULT WINAPI MSTASK_IClassFactory_LockServer( static HRESULT WINAPI MSTASK_IClassFactory_LockServer(
LPCLASSFACTORY iface, IClassFactory *iface,
BOOL fLock) BOOL fLock)
{ {
TRACE("\n"); TRACE("\n");
if (fLock != FALSE) if (fLock)
MSTASK_IClassFactory_AddRef(iface); IClassFactory_AddRef(iface);
else else
MSTASK_IClassFactory_Release(iface); IClassFactory_Release(iface);
return S_OK; return S_OK;
} }
......
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