Commit 63874db7 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

wineoss: Return E_UNEXPECTED with invalid dataflow in GetAudioEndpoint.

parent 357350e7
......@@ -306,6 +306,10 @@ HRESULT WINAPI AUDDRV_GetAudioEndpoint(GUID *guid, IMMDevice *dev,
WARN("Unknown GUID: %s\n", debugstr_guid(guid));
return AUDCLNT_E_DEVICE_INVALIDATED;
}
if(oss_dev->flow != eRender && oss_dev->flow != eCapture)
return E_UNEXPECTED;
len = strlen(oss_dev->devnode);
This = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, offsetof(ACImpl, device_name[len + 1]));
if(!This)
......
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