Skip to content
Snippets Groups Projects
Commit 357350e7 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard
Browse files

winecoreaudio: Return E_UNEXPECTED with invalid dataflow in GetAudioEndpoint.

parent 2ea43e6f
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,7 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev, IAudioClient
return AUDCLNT_E_DEVICE_INVALIDATED;
if(dataflow != eRender && dataflow != eCapture)
return E_INVALIDARG;
return E_UNEXPECTED;
name_len = strlen(name);
This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, offsetof(ACImpl, device_name[name_len + 1]));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment