Marcus Meissner : winealsa.drv: Fixed buffer to RegEnumKeyExW.

Alexandre Julliard julliard at winehq.org
Tue Apr 10 13:52:34 CDT 2012


Module: wine
Branch: master
Commit: 272535b948e8af27e2d291edeae6c4eb7bd988e5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=272535b948e8af27e2d291edeae6c4eb7bd988e5

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Mon Apr  9 23:52:37 2012 +0200

winealsa.drv: Fixed buffer to RegEnumKeyExW.

---

 dlls/winealsa.drv/mmdevdrv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/winealsa.drv/mmdevdrv.c b/dlls/winealsa.drv/mmdevdrv.c
index 66e8baf..e3c1d15 100644
--- a/dlls/winealsa.drv/mmdevdrv.c
+++ b/dlls/winealsa.drv/mmdevdrv.c
@@ -710,7 +710,7 @@ static BOOL get_alsa_name_by_guid(GUID *guid, char *name, DWORD name_size, EData
         DWORD size, type;
         GUID reg_guid;
 
-        key_name_size = sizeof(key_name);
+        key_name_size = sizeof(key_name)/sizeof(WCHAR);
         if(RegEnumKeyExW(devices_key, i, key_name, &key_name_size, NULL,
                 NULL, NULL, NULL) != ERROR_SUCCESS)
             break;




More information about the wine-cvs mailing list