Commit 0aea3728 authored by Victor Martinez Calvo's avatar Victor Martinez Calvo Committed by Alexandre Julliard

msdmo: Actually copy output string in IEnumDMO_fnNext.

parent 2dbfb2af
...@@ -615,9 +615,9 @@ static HRESULT WINAPI IEnumDMO_fnNext( ...@@ -615,9 +615,9 @@ static HRESULT WINAPI IEnumDMO_fnNext(
hres = RegQueryValueExW(hkey, NULL, NULL, NULL, (LPBYTE) szValue, &len); hres = RegQueryValueExW(hkey, NULL, NULL, NULL, (LPBYTE) szValue, &len);
if (ERROR_SUCCESS == hres) 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]) if (Names[count])
strcmpW(Names[count], szValue); strcpyW(Names[count], szValue);
} }
wsprintfW(szGuidKey,szToGuidFmt,szNextKey); wsprintfW(szGuidKey,szToGuidFmt,szNextKey);
CLSIDFromString(szGuidKey, &pCLSID[count]); CLSIDFromString(szGuidKey, &pCLSID[count]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment