From 426a4f1ef256662e5fb25ad51e04501e79ee766e Mon Sep 17 00:00:00 2001 From: Thomas Faber Date: Thu, 8 May 2014 13:24:09 +0000 Subject: [PATCH] =?UTF-8?q?[MSDMO]=20-=20Actually=20copy=20output=20string?= =?UTF-8?q?=20in=20IEnumDMO=5FfnNext.=20Patch=20by=20V=C3=ADctor=20Mart?= =?UTF-8?q?=C3=ADnez=20CORE-8151=20#resolve?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=63188 --- reactos/dll/directx/wine/msdmo/dmoreg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/dll/directx/wine/msdmo/dmoreg.c b/reactos/dll/directx/wine/msdmo/dmoreg.c index 48968b37798..84c1ed93a38 100644 --- a/reactos/dll/directx/wine/msdmo/dmoreg.c +++ b/reactos/dll/directx/wine/msdmo/dmoreg.c @@ -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]);