Commit 9a30a71e authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winecoreaudio: Adapt "release_stream_params" struct to mmdevapi's.

parent de9da9bc
......@@ -1737,6 +1737,24 @@ static NTSTATUS unix_wow64_create_stream(void *args)
return STATUS_SUCCESS;
}
static NTSTATUS unix_wow64_release_stream(void *args)
{
struct
{
stream_handle stream;
PTR32 timer_thread;
HRESULT result;
} *params32 = args;
struct release_stream_params params =
{
.stream = params32->stream,
.timer_thread = ULongToHandle(params32->timer_thread)
};
unix_release_stream(&params);
params32->result = params.result;
return STATUS_SUCCESS;
}
static NTSTATUS unix_wow64_get_render_buffer(void *args)
{
struct
......@@ -1966,7 +1984,7 @@ unixlib_entry_t __wine_unix_call_wow64_funcs[] =
{
unix_wow64_get_endpoint_ids,
unix_wow64_create_stream,
unix_release_stream,
unix_wow64_release_stream,
unix_start,
unix_stop,
unix_reset,
......
......@@ -535,6 +535,7 @@ static ULONG WINAPI AudioClient_Release(IAudioClient3 *iface)
}
if(This->stream){
params.stream = This->stream;
params.timer_thread = NULL;
UNIX_CALL(release_stream, &params);
}
if(This->session){
......
......@@ -55,6 +55,7 @@ struct create_stream_params
struct release_stream_params
{
stream_handle stream;
HANDLE timer_thread;
HRESULT result;
};
......
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