msdmo: Actually copy output string in IEnumDMO_fnNext.

This commit is contained in:
Victor Martinez Calvo 2014-05-02 19:27:00 +02:00 committed by Alexandre Julliard
parent 2dbfb2af84
commit 0aea3728cc

View file

@ -615,9 +615,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]);