2003-07-22 00:10:14 +02:00
|
|
|
/* IDirectMusicChordMap Implementation
|
|
|
|
*
|
2004-01-20 01:21:40 +01:00
|
|
|
* Copyright (C) 2003-2004 Rok Mandeljc
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2007-05-30 12:54:07 +02:00
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2003-07-22 00:10:14 +02:00
|
|
|
*
|
2007-05-30 12:54:07 +02:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-07-22 00:10:14 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "dmcompos_private.h"
|
2015-06-11 23:16:06 +02:00
|
|
|
#include "dmobject.h"
|
2003-07-22 00:10:14 +02:00
|
|
|
|
2003-08-23 01:53:27 +02:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(dmcompos);
|
2004-01-20 01:21:40 +01:00
|
|
|
WINE_DECLARE_DEBUG_CHANNEL(dmfile);
|
2003-07-22 00:10:14 +02:00
|
|
|
|
2004-01-20 01:21:40 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* IDirectMusicChordMapImpl implementation
|
|
|
|
*/
|
2014-06-09 13:28:51 +02:00
|
|
|
typedef struct IDirectMusicChordMapImpl {
|
|
|
|
IDirectMusicChordMap IDirectMusicChordMap_iface;
|
2015-06-11 23:16:06 +02:00
|
|
|
struct dmobject dmobj;
|
2014-06-09 13:28:51 +02:00
|
|
|
LONG ref;
|
|
|
|
} IDirectMusicChordMapImpl;
|
2003-07-22 00:10:14 +02:00
|
|
|
|
2004-01-20 01:21:40 +01:00
|
|
|
/* IDirectMusicChordMapImpl IDirectMusicChordMap part: */
|
2014-03-10 23:53:11 +01:00
|
|
|
static inline IDirectMusicChordMapImpl *impl_from_IDirectMusicChordMap(IDirectMusicChordMap *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, IDirectMusicChordMapImpl, IDirectMusicChordMap_iface);
|
|
|
|
}
|
|
|
|
|
|
|
|
static HRESULT WINAPI IDirectMusicChordMapImpl_QueryInterface(IDirectMusicChordMap *iface,
|
2014-03-10 23:55:42 +01:00
|
|
|
REFIID riid, void **ret_iface)
|
2014-03-10 23:53:11 +01:00
|
|
|
{
|
|
|
|
IDirectMusicChordMapImpl *This = impl_from_IDirectMusicChordMap(iface);
|
2014-03-10 23:55:42 +01:00
|
|
|
|
|
|
|
TRACE("(%p, %s, %p)\n", This, debugstr_dmguid(riid), ret_iface);
|
|
|
|
|
|
|
|
*ret_iface = NULL;
|
|
|
|
|
|
|
|
if (IsEqualIID(riid, &IID_IUnknown) || IsEqualIID(riid, &IID_IDirectMusicChordMap))
|
|
|
|
*ret_iface = iface;
|
|
|
|
else if (IsEqualIID(riid, &IID_IDirectMusicObject))
|
2015-06-11 23:16:06 +02:00
|
|
|
*ret_iface = &This->dmobj.IDirectMusicObject_iface;
|
2014-03-10 23:55:42 +01:00
|
|
|
else if (IsEqualIID(riid, &IID_IPersistStream))
|
2015-06-11 23:16:06 +02:00
|
|
|
*ret_iface = &This->dmobj.IPersistStream_iface;
|
2014-03-10 23:55:42 +01:00
|
|
|
else {
|
|
|
|
WARN("(%p, %s, %p): not found\n", This, debugstr_dmguid(riid), ret_iface);
|
|
|
|
return E_NOINTERFACE;
|
|
|
|
}
|
|
|
|
|
|
|
|
IUnknown_AddRef((IUnknown*)*ret_iface);
|
|
|
|
return S_OK;
|
2003-07-22 00:10:14 +02:00
|
|
|
}
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2014-03-10 23:53:11 +01:00
|
|
|
static ULONG WINAPI IDirectMusicChordMapImpl_AddRef(IDirectMusicChordMap *iface)
|
|
|
|
{
|
|
|
|
IDirectMusicChordMapImpl *This = impl_from_IDirectMusicChordMap(iface);
|
2014-03-10 23:55:42 +01:00
|
|
|
LONG ref = InterlockedIncrement(&This->ref);
|
|
|
|
|
2022-02-09 22:49:19 +01:00
|
|
|
TRACE("(%p) ref=%ld\n", This, ref);
|
2014-03-10 23:55:42 +01:00
|
|
|
|
|
|
|
return ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
}
|
|
|
|
|
2014-03-10 23:53:11 +01:00
|
|
|
static ULONG WINAPI IDirectMusicChordMapImpl_Release(IDirectMusicChordMap *iface)
|
|
|
|
{
|
|
|
|
IDirectMusicChordMapImpl *This = impl_from_IDirectMusicChordMap(iface);
|
2014-03-10 23:55:42 +01:00
|
|
|
LONG ref = InterlockedDecrement(&This->ref);
|
|
|
|
|
2022-02-09 22:49:19 +01:00
|
|
|
TRACE("(%p) ref=%ld\n", This, ref);
|
2014-03-10 23:55:42 +01:00
|
|
|
|
|
|
|
if (!ref) {
|
|
|
|
HeapFree(GetProcessHeap(), 0, This);
|
|
|
|
DMCOMPOS_UnlockModule();
|
|
|
|
}
|
|
|
|
|
|
|
|
return ref;
|
2003-08-23 01:53:27 +02:00
|
|
|
}
|
|
|
|
|
2014-03-10 23:53:11 +01:00
|
|
|
static HRESULT WINAPI IDirectMusicChordMapImpl_GetScale(IDirectMusicChordMap *iface,
|
|
|
|
DWORD *pdwScale)
|
|
|
|
{
|
|
|
|
IDirectMusicChordMapImpl *This = impl_from_IDirectMusicChordMap(iface);
|
|
|
|
FIXME("(%p, %p): stub\n", This, pdwScale);
|
|
|
|
return S_OK;
|
2003-08-23 01:53:27 +02:00
|
|
|
}
|
|
|
|
|
2014-03-10 23:53:11 +01:00
|
|
|
static const IDirectMusicChordMapVtbl dmchordmap_vtbl = {
|
|
|
|
IDirectMusicChordMapImpl_QueryInterface,
|
|
|
|
IDirectMusicChordMapImpl_AddRef,
|
|
|
|
IDirectMusicChordMapImpl_Release,
|
|
|
|
IDirectMusicChordMapImpl_GetScale
|
2004-01-20 01:21:40 +01:00
|
|
|
};
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2004-01-20 01:21:40 +01:00
|
|
|
/* IDirectMusicChordMapImpl IDirectMusicObject part: */
|
2018-07-15 21:08:46 +02:00
|
|
|
static HRESULT WINAPI chord_IDirectMusicObject_ParseDescriptor(IDirectMusicObject *iface,
|
|
|
|
IStream *stream, DMUS_OBJECTDESC *desc)
|
2015-06-11 23:16:06 +02:00
|
|
|
{
|
2018-07-15 21:08:46 +02:00
|
|
|
struct chunk_entry riff = {0};
|
|
|
|
HRESULT hr;
|
2003-08-23 01:53:27 +02:00
|
|
|
|
2018-07-15 21:08:46 +02:00
|
|
|
TRACE("(%p, %p, %p)\n", iface, stream, desc);
|
2008-02-20 23:52:55 +01:00
|
|
|
|
2018-07-15 21:08:46 +02:00
|
|
|
if (!stream || !desc)
|
|
|
|
return E_POINTER;
|
2008-02-20 23:52:55 +01:00
|
|
|
|
2018-07-15 21:08:46 +02:00
|
|
|
if ((hr = stream_get_chunk(stream, &riff)) != S_OK)
|
|
|
|
return hr;
|
|
|
|
if (riff.id != FOURCC_RIFF || riff.type != DMUS_FOURCC_CHORDMAP_FORM) {
|
|
|
|
TRACE("loading failed: unexpected %s\n", debugstr_chunk(&riff));
|
|
|
|
stream_skip_chunk(stream, &riff);
|
|
|
|
return DMUS_E_CHUNKNOTFOUND;
|
|
|
|
}
|
|
|
|
|
|
|
|
hr = dmobj_parsedescriptor(stream, &riff, desc, DMUS_OBJ_OBJECT);
|
|
|
|
if (FAILED(hr))
|
|
|
|
return hr;
|
|
|
|
|
|
|
|
desc->guidClass = CLSID_DirectMusicChordMap;
|
|
|
|
desc->dwValidData |= DMUS_OBJ_CLASS;
|
|
|
|
|
2019-12-12 01:11:03 +01:00
|
|
|
TRACE("returning descriptor:\n");
|
|
|
|
dump_DMUS_OBJECTDESC(desc);
|
|
|
|
|
2018-07-15 21:08:46 +02:00
|
|
|
return S_OK;
|
2003-08-23 01:53:27 +02:00
|
|
|
}
|
2004-01-20 01:21:40 +01:00
|
|
|
|
2015-06-11 23:16:06 +02:00
|
|
|
static const IDirectMusicObjectVtbl dmobject_vtbl = {
|
|
|
|
dmobj_IDirectMusicObject_QueryInterface,
|
|
|
|
dmobj_IDirectMusicObject_AddRef,
|
|
|
|
dmobj_IDirectMusicObject_Release,
|
|
|
|
dmobj_IDirectMusicObject_GetDescriptor,
|
|
|
|
dmobj_IDirectMusicObject_SetDescriptor,
|
2018-07-15 21:08:46 +02:00
|
|
|
chord_IDirectMusicObject_ParseDescriptor
|
2004-01-20 01:21:40 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/* IDirectMusicChordMapImpl IPersistStream part: */
|
2015-06-11 23:16:06 +02:00
|
|
|
static inline IDirectMusicChordMapImpl *impl_from_IPersistStream(IPersistStream *iface)
|
|
|
|
{
|
|
|
|
return CONTAINING_RECORD(iface, IDirectMusicChordMapImpl, dmobj.IPersistStream_iface);
|
2003-08-23 01:53:27 +02:00
|
|
|
}
|
|
|
|
|
2015-06-11 23:16:06 +02:00
|
|
|
static HRESULT WINAPI IPersistStreamImpl_Load(IPersistStream *iface, IStream *pStm)
|
|
|
|
{
|
|
|
|
IDirectMusicChordMapImpl *This = impl_from_IPersistStream(iface);
|
2004-01-20 01:21:40 +01:00
|
|
|
FOURCC chunkID;
|
|
|
|
DWORD chunkSize, StreamSize, StreamCount, ListSize[3], ListCount[3];
|
|
|
|
LARGE_INTEGER liMove; /* used when skipping chunks */
|
|
|
|
|
|
|
|
FIXME("(%p, %p): Loading not implemented yet\n", This, pStm);
|
|
|
|
IStream_Read (pStm, &chunkID, sizeof(FOURCC), NULL);
|
|
|
|
IStream_Read (pStm, &chunkSize, sizeof(DWORD), NULL);
|
2022-02-09 22:49:19 +01:00
|
|
|
TRACE_(dmfile)(": %s chunk (size = %ld)", debugstr_fourcc (chunkID), chunkSize);
|
2004-01-20 01:21:40 +01:00
|
|
|
switch (chunkID) {
|
|
|
|
case FOURCC_RIFF: {
|
|
|
|
IStream_Read (pStm, &chunkID, sizeof(FOURCC), NULL);
|
|
|
|
TRACE_(dmfile)(": RIFF chunk of type %s", debugstr_fourcc(chunkID));
|
|
|
|
StreamSize = chunkSize - sizeof(FOURCC);
|
|
|
|
StreamCount = 0;
|
|
|
|
switch (chunkID) {
|
|
|
|
case DMUS_FOURCC_CHORDMAP_FORM: {
|
|
|
|
TRACE_(dmfile)(": chordmap form\n");
|
|
|
|
do {
|
|
|
|
IStream_Read (pStm, &chunkID, sizeof(FOURCC), NULL);
|
|
|
|
IStream_Read (pStm, &chunkSize, sizeof(FOURCC), NULL);
|
|
|
|
StreamCount += sizeof(FOURCC) + sizeof(DWORD) + chunkSize;
|
2022-02-09 22:49:19 +01:00
|
|
|
TRACE_(dmfile)(": %s chunk (size = %ld)", debugstr_fourcc (chunkID), chunkSize);
|
2004-01-20 01:21:40 +01:00
|
|
|
switch (chunkID) {
|
|
|
|
case DMUS_FOURCC_GUID_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": GUID chunk\n");
|
2015-06-11 23:17:13 +02:00
|
|
|
This->dmobj.desc.dwValidData |= DMUS_OBJ_OBJECT;
|
|
|
|
IStream_Read (pStm, &This->dmobj.desc.guidObject, chunkSize, NULL);
|
2004-01-20 01:21:40 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case DMUS_FOURCC_VERSION_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": version chunk\n");
|
2015-06-11 23:17:13 +02:00
|
|
|
This->dmobj.desc.dwValidData |= DMUS_OBJ_VERSION;
|
|
|
|
IStream_Read (pStm, &This->dmobj.desc.vVersion, chunkSize, NULL);
|
2004-01-20 01:21:40 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case DMUS_FOURCC_CATEGORY_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": category chunk\n");
|
2015-06-11 23:17:13 +02:00
|
|
|
This->dmobj.desc.dwValidData |= DMUS_OBJ_CATEGORY;
|
|
|
|
IStream_Read (pStm, This->dmobj.desc.wszCategory, chunkSize, NULL);
|
2004-01-20 01:21:40 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case FOURCC_LIST: {
|
|
|
|
IStream_Read (pStm, &chunkID, sizeof(FOURCC), NULL);
|
|
|
|
TRACE_(dmfile)(": LIST chunk of type %s", debugstr_fourcc(chunkID));
|
|
|
|
ListSize[0] = chunkSize - sizeof(FOURCC);
|
|
|
|
ListCount[0] = 0;
|
|
|
|
switch (chunkID) {
|
|
|
|
case DMUS_FOURCC_UNFO_LIST: {
|
|
|
|
TRACE_(dmfile)(": UNFO list\n");
|
|
|
|
do {
|
|
|
|
IStream_Read (pStm, &chunkID, sizeof(FOURCC), NULL);
|
|
|
|
IStream_Read (pStm, &chunkSize, sizeof(FOURCC), NULL);
|
|
|
|
ListCount[0] += sizeof(FOURCC) + sizeof(DWORD) + chunkSize;
|
2022-02-09 22:49:19 +01:00
|
|
|
TRACE_(dmfile)(": %s chunk (size = %ld)", debugstr_fourcc (chunkID), chunkSize);
|
2004-01-20 01:21:40 +01:00
|
|
|
switch (chunkID) {
|
|
|
|
/* don't ask me why, but M$ puts INFO elements in UNFO list sometimes
|
|
|
|
(though strings seem to be valid unicode) */
|
|
|
|
case mmioFOURCC('I','N','A','M'):
|
|
|
|
case DMUS_FOURCC_UNAM_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": name chunk\n");
|
2015-06-11 23:17:13 +02:00
|
|
|
This->dmobj.desc.dwValidData |= DMUS_OBJ_NAME;
|
|
|
|
IStream_Read (pStm, This->dmobj.desc.wszName, chunkSize, NULL);
|
2004-01-20 01:21:40 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
case mmioFOURCC('I','A','R','T'):
|
|
|
|
case DMUS_FOURCC_UART_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": artist chunk (ignored)\n");
|
|
|
|
liMove.QuadPart = chunkSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case mmioFOURCC('I','C','O','P'):
|
|
|
|
case DMUS_FOURCC_UCOP_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": copyright chunk (ignored)\n");
|
|
|
|
liMove.QuadPart = chunkSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case mmioFOURCC('I','S','B','J'):
|
|
|
|
case DMUS_FOURCC_USBJ_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": subject chunk (ignored)\n");
|
|
|
|
liMove.QuadPart = chunkSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case mmioFOURCC('I','C','M','T'):
|
|
|
|
case DMUS_FOURCC_UCMT_CHUNK: {
|
|
|
|
TRACE_(dmfile)(": comment chunk (ignored)\n");
|
|
|
|
liMove.QuadPart = chunkSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default: {
|
2011-07-30 12:03:08 +02:00
|
|
|
TRACE_(dmfile)(": unknown chunk (irrelevant & skipping)\n");
|
2004-01-20 01:21:40 +01:00
|
|
|
liMove.QuadPart = chunkSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2022-02-09 22:49:19 +01:00
|
|
|
TRACE_(dmfile)(": ListCount[0] = %ld < ListSize[0] = %ld\n", ListCount[0], ListSize[0]);
|
2004-01-20 01:21:40 +01:00
|
|
|
} while (ListCount[0] < ListSize[0]);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
TRACE_(dmfile)(": unknown (skipping)\n");
|
|
|
|
liMove.QuadPart = chunkSize - sizeof(FOURCC);
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default: {
|
2011-07-30 12:03:08 +02:00
|
|
|
TRACE_(dmfile)(": unknown chunk (irrelevant & skipping)\n");
|
2004-01-20 01:21:40 +01:00
|
|
|
liMove.QuadPart = chunkSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2022-02-09 22:49:19 +01:00
|
|
|
TRACE_(dmfile)(": StreamCount[0] = %ld < StreamSize[0] = %ld\n", StreamCount, StreamSize);
|
2004-01-20 01:21:40 +01:00
|
|
|
} while (StreamCount < StreamSize);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
|
|
|
liMove.QuadPart = StreamSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL); /* skip the rest of the chunk */
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
TRACE_(dmfile)(": reading finished\n");
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
default: {
|
|
|
|
TRACE_(dmfile)(": unexpected chunk; loading failed)\n");
|
|
|
|
liMove.QuadPart = chunkSize;
|
|
|
|
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL); /* skip the rest of the chunk */
|
|
|
|
return E_FAIL;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2003-08-23 01:53:27 +02:00
|
|
|
return S_OK;
|
|
|
|
}
|
|
|
|
|
2015-06-11 23:16:06 +02:00
|
|
|
static const IPersistStreamVtbl persiststream_vtbl = {
|
|
|
|
dmobj_IPersistStream_QueryInterface,
|
|
|
|
dmobj_IPersistStream_AddRef,
|
|
|
|
dmobj_IPersistStream_Release,
|
|
|
|
dmobj_IPersistStream_GetClassID,
|
|
|
|
unimpl_IPersistStream_IsDirty,
|
|
|
|
IPersistStreamImpl_Load,
|
|
|
|
unimpl_IPersistStream_Save,
|
|
|
|
unimpl_IPersistStream_GetSizeMax
|
2003-08-23 01:53:27 +02:00
|
|
|
};
|
2004-01-20 01:21:40 +01:00
|
|
|
|
|
|
|
/* for ClassFactory */
|
2014-01-16 00:45:17 +01:00
|
|
|
HRESULT WINAPI create_dmchordmap(REFIID lpcGUID, void **ppobj)
|
|
|
|
{
|
2004-01-20 01:21:40 +01:00
|
|
|
IDirectMusicChordMapImpl* obj;
|
2014-03-10 23:55:42 +01:00
|
|
|
HRESULT hr;
|
|
|
|
|
2004-01-20 01:21:40 +01:00
|
|
|
obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicChordMapImpl));
|
|
|
|
if (NULL == obj) {
|
2004-12-22 16:13:20 +01:00
|
|
|
*ppobj = NULL;
|
2004-01-20 01:21:40 +01:00
|
|
|
return E_OUTOFMEMORY;
|
|
|
|
}
|
2014-03-10 23:53:11 +01:00
|
|
|
obj->IDirectMusicChordMap_iface.lpVtbl = &dmchordmap_vtbl;
|
2014-03-10 23:55:42 +01:00
|
|
|
obj->ref = 1;
|
2015-06-11 23:16:06 +02:00
|
|
|
dmobject_init(&obj->dmobj, &CLSID_DirectMusicChordMap,
|
|
|
|
(IUnknown *)&obj->IDirectMusicChordMap_iface);
|
|
|
|
obj->dmobj.IDirectMusicObject_iface.lpVtbl = &dmobject_vtbl;
|
|
|
|
obj->dmobj.IPersistStream_iface.lpVtbl = &persiststream_vtbl;
|
2014-03-10 23:55:42 +01:00
|
|
|
|
|
|
|
DMCOMPOS_LockModule();
|
|
|
|
hr = IDirectMusicChordMap_QueryInterface(&obj->IDirectMusicChordMap_iface, lpcGUID, ppobj);
|
|
|
|
IDirectMusicChordMap_Release(&obj->IDirectMusicChordMap_iface);
|
2008-02-20 23:52:55 +01:00
|
|
|
|
2014-03-10 23:55:42 +01:00
|
|
|
return hr;
|
2004-01-20 01:21:40 +01:00
|
|
|
}
|