Commit 366f5411 authored by Bernhard Loos's avatar Bernhard Loos Committed by Alexandre Julliard

winealsa.drv: If there are no devices, there is also no default device.

parent 56212ce2
......@@ -390,6 +390,13 @@ HRESULT WINAPI AUDDRV_GetEndpointIDs(EDataFlow flow, WCHAR ***ids, char ***keys,
if(FAILED(hr))
return hr;
if(*num == 0)
{
*ids = NULL;
*keys = NULL;
return S_OK;
}
*ids = HeapAlloc(GetProcessHeap(), 0, (*num + 1) * sizeof(WCHAR *));
*keys = HeapAlloc(GetProcessHeap(), 0, (*num + 1) * sizeof(char *));
if(!*ids || !*keys){
......
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