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

infosoft: Properly return interface pointers.

parent d618c0fa
...@@ -81,7 +81,7 @@ static HRESULT WINAPI infosoftcf_fnQueryInterface ( LPCLASSFACTORY iface, ...@@ -81,7 +81,7 @@ static HRESULT WINAPI infosoftcf_fnQueryInterface ( LPCLASSFACTORY iface,
if (IsEqualIID(riid, &IID_IUnknown) || if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IClassFactory)) IsEqualIID(riid, &IID_IClassFactory))
{ {
*ppvObj = This; *ppvObj = &This->IClassFactory_iface;
return S_OK; return S_OK;
} }
......
...@@ -57,7 +57,7 @@ static HRESULT WINAPI wb_QueryInterface( IWordBreaker *iface, ...@@ -57,7 +57,7 @@ static HRESULT WINAPI wb_QueryInterface( IWordBreaker *iface,
if (IsEqualIID(riid, &IID_IUnknown) || if (IsEqualIID(riid, &IID_IUnknown) ||
IsEqualIID(riid, &IID_IWordBreaker)) IsEqualIID(riid, &IID_IWordBreaker))
{ {
*ppvObj = This; *ppvObj = &This->IWordBreaker_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