msdmo: Next() method should use CoTaskMemAlloc() for returned names.
This commit is contained in:
parent
65bf359d6f
commit
3f7c47118a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue