[PATCH 2/2] winealsa.drv: Optionally load extra ALSA device names from the registry
Alexandre Julliard
julliard at winehq.org
Tue Feb 14 13:30:08 CST 2012
Andrew Eikum <aeikum at codeweavers.com> writes:
> + while(*p){
> + if(alsa_try_open(p, stream)){
> + if(ids && keys){
> + len = MultiByteToWideChar(CP_UNIXCP, 0, p, -1, NULL, 0);
> + ids[*num] = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
> + MultiByteToWideChar(CP_UNIXCP, 0, p, -1, ids[*num], len);
The registry is stored in Unicode, the conversion should be the other
way around.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list