Sebastian Lackner : winealsa.drv: Avoid endless loop if registry keys are not accessible.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Nov 4 09:19:32 CST 2014
Module: wine
Branch: master
Commit: ef1aad985ddf2c4d2cfe38e4b8f4cc3d35d138da
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ef1aad985ddf2c4d2cfe38e4b8f4cc3d35d138da
Author: Sebastian Lackner <sebastian at fds-team.de>
Date: Tue Nov 4 04:54:56 2014 +0100
winealsa.drv: Avoid endless loop if registry keys are not accessible.
---
dlls/winealsa.drv/mmdevdrv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
index a4c02bf..5f623c0 100644
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -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);
More information about the wine-cvs
mailing list