Commit d223716b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

msdmo: Fix the DMOGetName() prototype.

parent 5e336f45
......@@ -291,7 +291,7 @@ lend:
*
* Get DMP Name from the registry
*/
HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR* szName)
HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR szName[80])
{
WCHAR szguid[64];
HRESULT hres;
......@@ -311,7 +311,7 @@ HRESULT WINAPI DMOGetName(REFCLSID clsidDMO, WCHAR* szName)
if (ERROR_SUCCESS != hres)
goto lend;
count = 80 * sizeof(WCHAR); /* 80 by API definition */
count = sizeof(szName);
hres = RegQueryValueExW(hkey, NULL, NULL, NULL,
(LPBYTE) szName, &count);
......
......@@ -44,7 +44,7 @@ HRESULT WINAPI DMOEnum(REFGUID,DWORD,DWORD,const DMO_PARTIAL_MEDIATYPE*,DWORD,
const DMO_PARTIAL_MEDIATYPE*,IEnumDMO**);
HRESULT WINAPI DMOGetTypes(REFCLSID,ULONG,ULONG*,DMO_PARTIAL_MEDIATYPE*,
ULONG,ULONG*,DMO_PARTIAL_MEDIATYPE*);
HRESULT WINAPI DMOGetName(REFCLSID,WCHAR*);
HRESULT WINAPI DMOGetName(REFCLSID,WCHAR[80]);
DEFINE_GUID(DMOCATEGORY_AUDIO_DECODER,
0x57f2db8b,0xe6bb,0x4513,0x9d,0x43,0xdc,0xd2,0xa6,0x59,0x31,0x25);
......
......@@ -2664,7 +2664,7 @@ ULONG *
%wstr
LPCWSTR
WCHAR *
WCHAR[80]
%%msg711.acm
......
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