Commit 3b541194 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

mmdevapi: Handle CreateThread() failure in AudioClient's Start.

parent f1aa3f37
......@@ -408,8 +408,12 @@ HRESULT WINAPI client_Start(IAudioClient3 *iface)
WINE_UNIX_CALL(start, &params);
if (SUCCEEDED(params.result) && !This->timer_thread) {
This->timer_thread = CreateThread(NULL, 0, timer_loop_func, This, 0, NULL);
if ((This->timer_thread = CreateThread(NULL, 0, timer_loop_func, This, 0, NULL)))
SetThreadPriority(This->timer_thread, THREAD_PRIORITY_TIME_CRITICAL);
else {
IAudioClient3_Stop(&This->IAudioClient3_iface);
params.result = E_FAIL;
}
}
sessions_unlock();
......
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