mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user