msdmo: Actually copy output string in IEnumDMO_fnNext.
This commit is contained in:
parent
2dbfb2af84
commit
0aea3728cc
|
@ -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]);
|
||||
|
|
Loading…
Reference in New Issue