Module: wine Branch: master Commit: 3f7c47118a9f3adc14c28fe728de576e51a76d5f URL: http://source.winehq.org/git/wine.git/?a=commit;h=3f7c47118a9f3adc14c28fe728...
Author: Nikolay Sivov nsivov@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); }