mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[MSDMO]
- 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:
parent
99da81e080
commit
426a4f1ef2
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue