Commit f5d82923 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

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

parent 23fadaad
...@@ -230,7 +230,7 @@ static void pulse_release_stream(stream_handle stream, HANDLE timer) ...@@ -230,7 +230,7 @@ static void pulse_release_stream(stream_handle stream, HANDLE timer)
{ {
struct release_stream_params params; struct release_stream_params params;
params.stream = stream; params.stream = stream;
params.timer = timer; params.timer_thread = timer;
pulse_call(release_stream, &params); pulse_call(release_stream, &params);
} }
......
...@@ -1203,10 +1203,10 @@ static NTSTATUS pulse_release_stream(void *args) ...@@ -1203,10 +1203,10 @@ static NTSTATUS pulse_release_stream(void *args)
struct pulse_stream *stream = handle_get_stream(params->stream); struct pulse_stream *stream = handle_get_stream(params->stream);
SIZE_T size; SIZE_T size;
if(params->timer) { if(params->timer_thread) {
stream->please_quit = TRUE; stream->please_quit = TRUE;
NtWaitForSingleObject(params->timer, FALSE, NULL); NtWaitForSingleObject(params->timer_thread, FALSE, NULL);
NtClose(params->timer); NtClose(params->timer_thread);
} }
pulse_lock(); pulse_lock();
...@@ -2451,13 +2451,13 @@ static NTSTATUS pulse_wow64_release_stream(void *args) ...@@ -2451,13 +2451,13 @@ static NTSTATUS pulse_wow64_release_stream(void *args)
struct struct
{ {
stream_handle stream; stream_handle stream;
PTR32 timer; PTR32 timer_thread;
HRESULT result; HRESULT result;
} *params32 = args; } *params32 = args;
struct release_stream_params params = struct release_stream_params params =
{ {
.stream = params32->stream, .stream = params32->stream,
.timer = ULongToHandle(params32->timer) .timer_thread = ULongToHandle(params32->timer_thread)
}; };
pulse_release_stream(&params); pulse_release_stream(&params);
params32->result = params.result; params32->result = params.result;
......
...@@ -68,7 +68,7 @@ struct create_stream_params ...@@ -68,7 +68,7 @@ struct create_stream_params
struct release_stream_params struct release_stream_params
{ {
stream_handle stream; stream_handle stream;
HANDLE timer; HANDLE timer_thread;
HRESULT result; 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