Andrew Eikum aeikum@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.