"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "dlls/dmime/dmobject.c" between
wine-5.12.tar.xz and wine-5.13.tar.xz

About: Wine is an Open Source implementation of the MS Windows API on top of X, OpenGL, and Unix. Think of Wine as a compatibility layer for running Windows programs. Development release.

dmobject.c  (wine-5.12.tar.xz):dmobject.c  (wine-5.13.tar.xz)
skipping to change at line 572 skipping to change at line 572
else if (chunk.type == DMUS_FOURCC_INFO_LIST && (supported & DMU S_OBJ_NAME_INFO)) else if (chunk.type == DMUS_FOURCC_INFO_LIST && (supported & DMU S_OBJ_NAME_INFO))
info_get_name(stream, &chunk, desc); info_get_name(stream, &chunk, desc);
break; break;
} }
} }
TRACE("Found %#x\n", desc->dwValidData); TRACE("Found %#x\n", desc->dwValidData);
return hr; return hr;
} }
HRESULT dmobj_parsereference(IStream *stream, const struct chunk_entry *list,
IDirectMusicObject **dmobj)
{
struct chunk_entry chunk = {.parent = list};
IDirectMusicGetLoader *getloader;
IDirectMusicLoader *loader;
DMUS_OBJECTDESC desc;
DMUS_IO_REFERENCE reference;
HRESULT hr;
if (FAILED(hr = stream_next_chunk(stream, &chunk)))
return hr;
if (chunk.id != DMUS_FOURCC_REF_CHUNK)
return DMUS_E_UNSUPPORTED_STREAM;
if (FAILED(hr = stream_chunk_get_data(stream, &chunk, &reference, sizeof(ref
erence)))) {
WARN("Failed to read data of %s\n", debugstr_chunk(&chunk));
return hr;
}
TRACE("REFERENCE guidClassID %s, dwValidData %#x\n", debugstr_dmguid(&refere
nce.guidClassID),
reference.dwValidData);
if (FAILED(hr = dmobj_parsedescriptor(stream, list, &desc, reference.dwValid
Data)))
return hr;
desc.guidClass = reference.guidClassID;
desc.dwValidData |= DMUS_OBJ_CLASS;
dump_DMUS_OBJECTDESC(&desc);
if (FAILED(hr = IStream_QueryInterface(stream, &IID_IDirectMusicGetLoader, (
void**)&getloader)))
return hr;
hr = IDirectMusicGetLoader_GetLoader(getloader, &loader);
IDirectMusicGetLoader_Release(getloader);
if (FAILED(hr))
return hr;
hr = IDirectMusicLoader_GetObject(loader, &desc, &IID_IDirectMusicObject, (v
oid**)dmobj);
IDirectMusicLoader_Release(loader);
return hr;
}
/* Generic IPersistStream methods */ /* Generic IPersistStream methods */
static inline struct dmobject *impl_from_IPersistStream(IPersistStream *iface) static inline struct dmobject *impl_from_IPersistStream(IPersistStream *iface)
{ {
return CONTAINING_RECORD(iface, struct dmobject, IPersistStream_iface); return CONTAINING_RECORD(iface, struct dmobject, IPersistStream_iface);
} }
HRESULT WINAPI dmobj_IPersistStream_QueryInterface(IPersistStream *iface, REFIID riid, HRESULT WINAPI dmobj_IPersistStream_QueryInterface(IPersistStream *iface, REFIID riid,
void **ret_iface) void **ret_iface)
{ {
struct dmobject *This = impl_from_IPersistStream(iface); struct dmobject *This = impl_from_IPersistStream(iface);
 End of changes. 1 change blocks. 
0 lines changed or deleted 46 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)