Commit 4bceee9e authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard

winecoreaudio: Fix a test for allocation failure (copy/paste error).

parent 9162c3d3
......@@ -408,7 +408,7 @@ HRESULT WINAPI AUDDRV_GetEndpointIDs(EDataFlow flow, WCHAR ***ids,
MultiByteToWideChar(CP_UNIXCP, 0, nameA, -1, (*ids)[*num], len);
(*keys)[*num] = HeapAlloc(GetProcessHeap(), 0, sizeof(AudioDeviceID));
if(!(*ids)[*num]){
if(!(*keys)[*num]){
HeapFree(GetProcessHeap(), 0, devices);
HeapFree(GetProcessHeap(), 0, (*ids)[*num]);
for(j = 0; j < *num; ++j){
......
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