xactengine3_7: Return valid HRESULT from IXACT3Engine Initialize.
FAudio doesn't always return a valid HRESULT, ensure a valid code is passed back to the application. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
18d7bc9859
commit
47a5de3438
|
@ -157,6 +157,7 @@ static HRESULT WINAPI IXACT3EngineImpl_Initialize(IXACT3Engine *iface,
|
||||||
{
|
{
|
||||||
XACT3EngineImpl *This = impl_from_IXACT3Engine(iface);
|
XACT3EngineImpl *This = impl_from_IXACT3Engine(iface);
|
||||||
FACTRuntimeParameters params;
|
FACTRuntimeParameters params;
|
||||||
|
UINT ret;
|
||||||
|
|
||||||
TRACE("(%p)->(%p)\n", This, pParams);
|
TRACE("(%p)->(%p)\n", This, pParams);
|
||||||
|
|
||||||
|
@ -195,7 +196,11 @@ static HRESULT WINAPI IXACT3EngineImpl_Initialize(IXACT3Engine *iface,
|
||||||
params.fileIOCallbacks.readFileCallback = wrap_readfile;
|
params.fileIOCallbacks.readFileCallback = wrap_readfile;
|
||||||
params.fileIOCallbacks.getOverlappedResultCallback = wrap_getoverlappedresult;
|
params.fileIOCallbacks.getOverlappedResultCallback = wrap_getoverlappedresult;
|
||||||
|
|
||||||
return FACTAudioEngine_Initialize(This->fact_engine, ¶ms);
|
ret = FACTAudioEngine_Initialize(This->fact_engine, ¶ms);
|
||||||
|
if (ret != 0)
|
||||||
|
WARN("FACTAudioEngine_Initialize returned %d\n", ret);
|
||||||
|
|
||||||
|
return !ret ? S_OK : E_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT WINAPI IXACT3EngineImpl_ShutDown(IXACT3Engine *iface)
|
static HRESULT WINAPI IXACT3EngineImpl_ShutDown(IXACT3Engine *iface)
|
||||||
|
|
Loading…
Reference in New Issue