Commit 32775c87 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winepulse: Return E_UNEXPECTED with invalid dataflow in GetAudioEndpoint.

parent 63874db7
...@@ -342,6 +342,9 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient ...@@ -342,6 +342,9 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient
if (!get_pulse_name_by_guid(guid, pulse_name, &dataflow)) if (!get_pulse_name_by_guid(guid, pulse_name, &dataflow))
return AUDCLNT_E_DEVICE_INVALIDATED; return AUDCLNT_E_DEVICE_INVALIDATED;
if (dataflow != eRender && dataflow != eCapture)
return E_UNEXPECTED;
*out = NULL; *out = NULL;
len = strlen(pulse_name) + 1; len = strlen(pulse_name) + 1;
......
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