msdmo: Fix the DMOGetName() prototype.
This commit is contained in:
parent
5e336f45d2
commit
d223716b7b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue