Commit b012bed6 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winepulse: Return E_NOTIMPL when the property is not found.

Fixes a regression caused by 13fa7a57.
parent 2586652e
......@@ -2489,7 +2489,6 @@ static NTSTATUS pulse_get_prop_value(void *args)
struct list *list = (params->flow == eRender) ? &g_phys_speakers : &g_phys_sources;
PhysDevice *dev;
params->result = S_OK;
LIST_FOR_EACH_ENTRY(dev, list, PhysDevice, entry) {
if (strcmp(params->device, dev->pulse_name))
continue;
......@@ -2501,18 +2500,19 @@ static NTSTATUS pulse_get_prop_value(void *args)
case 0: /* FormFactor */
params->value->vt = VT_UI4;
params->value->ulVal = dev->form;
params->result = S_OK;
return STATUS_SUCCESS;
case 3: /* PhysicalSpeakers */
if (!dev->channel_mask)
goto fail;
params->value->vt = VT_UI4;
params->value->ulVal = dev->channel_mask;
params->result = S_OK;
return STATUS_SUCCESS;
default:
params->result = E_NOTIMPL;
}
}
params->result = E_NOTIMPL;
return STATUS_SUCCESS;
}
......
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