Author: tfaber Date: Thu May 8 13:24:09 2014 New Revision: 63188
URL: http://svn.reactos.org/svn/reactos?rev=63188&view=rev Log: [MSDMO] - Actually copy output string in IEnumDMO_fnNext. Patch by Víctor Martínez CORE-8151 #resolve
Modified: trunk/reactos/dll/directx/wine/msdmo/dmoreg.c
Modified: trunk/reactos/dll/directx/wine/msdmo/dmoreg.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/directx/wine/msdmo/dmor... ============================================================================== --- trunk/reactos/dll/directx/wine/msdmo/dmoreg.c [iso-8859-1] (original) +++ trunk/reactos/dll/directx/wine/msdmo/dmoreg.c [iso-8859-1] Thu May 8 13:24:09 2014 @@ -607,9 +607,9 @@ 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]);