winealsa.drv: Avoid endless loop if registry keys are not accessible.
This commit is contained in:
parent
dd0924367e
commit
ef1aad985d
|
@ -719,7 +719,7 @@ static BOOL get_alsa_name_by_guid(GUID *guid, char *name, DWORD name_size, EData
|
|||
GUID reg_guid;
|
||||
|
||||
key_name_size = sizeof(key_name)/sizeof(WCHAR);
|
||||
if(RegEnumKeyExW(devices_key, i, key_name, &key_name_size, NULL,
|
||||
if(RegEnumKeyExW(devices_key, i++, key_name, &key_name_size, NULL,
|
||||
NULL, NULL, NULL) != ERROR_SUCCESS)
|
||||
break;
|
||||
|
||||
|
@ -753,8 +753,6 @@ static BOOL get_alsa_name_by_guid(GUID *guid, char *name, DWORD name_size, EData
|
|||
}
|
||||
|
||||
RegCloseKey(key);
|
||||
|
||||
++i;
|
||||
}
|
||||
|
||||
RegCloseKey(devices_key);
|
||||
|
|
Loading…
Reference in New Issue