[PATCH 1/7] dsound: Implement DSPROPERTY_WaveDeviceMappingA on top of *W
Alexandre Julliard
julliard at winehq.org
Wed Dec 9 06:55:15 CST 2009
Maarten Lankhorst <m.b.lankhorst at gmail.com> writes:
> + data.DataFlow = ppd->DataFlow;
> + len = strlen(ppd->DeviceName)+1;
> + data.DeviceName = HeapAlloc(GetProcessHeap(), 0, len);
> + if (!data.DeviceName)
> + return E_OUTOFMEMORY;
> + MultiByteToWideChar(CP_ACP, 0, ppd->DeviceName, -1, data.DeviceName, len );
The W length handling is broken.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list