Commit a9200b24 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

msdmo: Array parameter is passed to function as pointer so loses size information.

parent 0f4f6fac
......@@ -291,8 +291,9 @@ lend:
*
* Get DMP Name from the registry
*/
HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR szName[80])
HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR szName[])
{
#define NAME_SIZE 80 /* Size of szName[] */
WCHAR szguid[64];
HRESULT hres;
HKEY hrkey = 0;
......@@ -311,7 +312,7 @@ HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR szName[80])
if (ERROR_SUCCESS != hres)
goto lend;
count = sizeof(szName);
count = NAME_SIZE;
hres = RegQueryValueExW(hkey, NULL, NULL, NULL,
(LPBYTE) szName, &count);
......@@ -323,6 +324,7 @@ lend:
RegCloseKey(hkey);
return hres;
#undef NAME_SIZE
}
......
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