Sebastian Lackner : winecoreaudio.drv: Avoid endless loop if registry keys are not accessible.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Nov 5 08:59:37 CST 2014
Module: wine
Branch: master
Commit: 26eed57018d3c765f674ae91c62588d96a18ce57
URL: http://source.winehq.org/git/wine.git/?a=commit;h=26eed57018d3c765f674ae91c62588d96a18ce57
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Tue Nov 4 20:11:46 2014 +0100
winecoreaudio.drv: Avoid endless loop if registry keys are not accessible.
---
dlls/winecoreaudio.drv/mmdevdrv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/winecoreaudio.drv/mmdevdrv.c b/dlls/winecoreaudio.drv/mmdevdrv.c
index e58cda1..f8ca7b7 100644
--- a/dlls/winecoreaudio.drv/mmdevdrv.c
+++ b/dlls/winecoreaudio.drv/mmdevdrv.c
@@ -562,7 +562,7 @@ static BOOL get_deviceid_by_guid(GUID *guid, AudioDeviceID *id, EDataFlow *flow)
GUID reg_guid;
key_name_size = sizeof(key_name);
- 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;
@@ -596,8 +596,6 @@ static BOOL get_deviceid_by_guid(GUID *guid, AudioDeviceID *id, EDataFlow *flow)
}
RegCloseKey(key);
-
- ++i;
}
RegCloseKey(devices_key);
More information about the wine-cvs
mailing list