Commit 47a5de34 authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

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: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 18d7bc98
...@@ -157,6 +157,7 @@ static HRESULT WINAPI IXACT3EngineImpl_Initialize(IXACT3Engine *iface, ...@@ -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, ...@@ -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, &params); ret = FACTAudioEngine_Initialize(This->fact_engine, &params);
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)
......
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