Nikolay Sivov : msdmo: Next() method should use CoTaskMemAlloc() for returned names.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Apr 23 07:04:14 CDT 2015
Module: wine
Branch: master
Commit: 3f7c47118a9f3adc14c28fe728de576e51a76d5f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f7c47118a9f3adc14c28fe728de576e51a76d5f
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Thu Apr 23 09:40:15 2015 +0300
msdmo: Next() method should use CoTaskMemAlloc() for returned names.
---
dlls/msdmo/dmoreg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/msdmo/dmoreg.c b/dlls/msdmo/dmoreg.c
index f42bc56..f9bf9b3 100644
--- a/dlls/msdmo/dmoreg.c
+++ b/dlls/msdmo/dmoreg.c
@@ -636,7 +636,7 @@ static HRESULT WINAPI IEnumDMO_fnNext(
ret = RegQueryValueExW(hkey, NULL, NULL, NULL, (LPBYTE)szValue, &len);
if (ERROR_SUCCESS == ret)
{
- Names[count] = HeapAlloc(GetProcessHeap(), 0, (strlenW(szValue) + 1) * sizeof(WCHAR));
+ Names[count] = CoTaskMemAlloc((strlenW(szValue) + 1) * sizeof(WCHAR));
if (Names[count])
strcpyW(Names[count], szValue);
}
More information about the wine-cvs
mailing list