Commit 850a2611 authored by Davide Beatrici's avatar Davide Beatrici Committed by Alexandre Julliard

winepulse: Adapt "endpoint" struct to mmdevapi's.

parent 4f00a1f9
...@@ -456,7 +456,7 @@ HRESULT WINAPI AUDDRV_GetEndpointIDs(EDataFlow flow, WCHAR ***ids_out, GUID **ke ...@@ -456,7 +456,7 @@ HRESULT WINAPI AUDDRV_GetEndpointIDs(EDataFlow flow, WCHAR ***ids_out, GUID **ke
for (i = 0; i < params.num; i++) { for (i = 0; i < params.num; i++) {
WCHAR *name = (WCHAR *)((char *)params.endpoints + params.endpoints[i].name); WCHAR *name = (WCHAR *)((char *)params.endpoints + params.endpoints[i].name);
char *pulse_name = (char *)params.endpoints + params.endpoints[i].pulse_name; char *pulse_name = (char *)params.endpoints + params.endpoints[i].device;
unsigned int size = (wcslen(name) + 1) * sizeof(WCHAR); unsigned int size = (wcslen(name) + 1) * sizeof(WCHAR);
if (!(ids[i] = HeapAlloc(GetProcessHeap(), 0, size))) { if (!(ids[i] = HeapAlloc(GetProcessHeap(), 0, size))) {
......
...@@ -268,7 +268,7 @@ static NTSTATUS pulse_get_endpoint_ids(void *args) ...@@ -268,7 +268,7 @@ static NTSTATUS pulse_get_endpoint_ids(void *args)
endpoint->name = offset; endpoint->name = offset;
memcpy((char *)params->endpoints + offset, dev->name, name_len * sizeof(WCHAR)); memcpy((char *)params->endpoints + offset, dev->name, name_len * sizeof(WCHAR));
offset += name_len * sizeof(WCHAR); offset += name_len * sizeof(WCHAR);
endpoint->pulse_name = offset; endpoint->device = offset;
memcpy((char *)params->endpoints + offset, dev->pulse_name, len); memcpy((char *)params->endpoints + offset, dev->pulse_name, len);
offset += (len + 1) & ~1; offset += (len + 1) & ~1;
endpoint++; endpoint++;
......
...@@ -32,7 +32,7 @@ enum phys_device_bus_type { ...@@ -32,7 +32,7 @@ enum phys_device_bus_type {
struct endpoint struct endpoint
{ {
unsigned int name; unsigned int name;
unsigned int pulse_name; unsigned int device;
}; };
struct main_loop_params struct main_loop_params
......
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