- Actually copy output string in IEnumDMO_fnNext. Patch by Víctor Martínez
CORE-8151 #resolve

svn path=/trunk/; revision=63188
This commit is contained in:
Thomas Faber 2014-05-08 13:24:09 +00:00
parent 99da81e080
commit 426a4f1ef2

View file

@ -607,9 +607,9 @@ static HRESULT WINAPI IEnumDMO_fnNext(
hres = RegQueryValueExW(hkey, NULL, NULL, NULL, (LPBYTE) szValue, &len);
if (ERROR_SUCCESS == hres)
{
Names[count] = HeapAlloc(GetProcessHeap(), 0, strlenW(szValue) + 1);
Names[count] = HeapAlloc(GetProcessHeap(), 0, (strlenW(szValue) + 1) * sizeof(WCHAR));
if (Names[count])
strcmpW(Names[count], szValue);
strcpyW(Names[count], szValue);
}
wsprintfW(szGuidKey,szToGuidFmt,szNextKey);
CLSIDFromString(szGuidKey, &pCLSID[count]);