Commit ae81a130 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dmscript: Include the DMUS_OBJECTDESC directly into DirectMusicScriptTrack.

parent a5135bdc
...@@ -29,7 +29,7 @@ typedef struct DirectMusicScriptTrack { ...@@ -29,7 +29,7 @@ typedef struct DirectMusicScriptTrack {
IDirectMusicTrack8 IDirectMusicTrack8_iface; IDirectMusicTrack8 IDirectMusicTrack8_iface;
IPersistStream IPersistStream_iface; IPersistStream IPersistStream_iface;
LONG ref; LONG ref;
LPDMUS_OBJECTDESC pDesc; DMUS_OBJECTDESC desc;
} DirectMusicScriptTrack; } DirectMusicScriptTrack;
static inline DirectMusicScriptTrack *impl_from_IDirectMusicTrack8(IDirectMusicTrack8 *iface) static inline DirectMusicScriptTrack *impl_from_IDirectMusicTrack8(IDirectMusicTrack8 *iface)
...@@ -318,10 +318,9 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicScriptTrack(REFIID riid, void **ret_iface ...@@ -318,10 +318,9 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicScriptTrack(REFIID riid, void **ret_iface
track->IDirectMusicTrack8_iface.lpVtbl = &dmtrack8_vtbl; track->IDirectMusicTrack8_iface.lpVtbl = &dmtrack8_vtbl;
track->IPersistStream_iface.lpVtbl = &persist_vtbl; track->IPersistStream_iface.lpVtbl = &persist_vtbl;
track->pDesc = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DMUS_OBJECTDESC)); track->desc.dwSize = sizeof(track->desc);
DM_STRUCT_INIT(track->pDesc); track->desc.dwValidData |= DMUS_OBJ_CLASS;
track->pDesc->dwValidData |= DMUS_OBJ_CLASS; track->desc.guidClass = CLSID_DirectMusicScriptTrack;
track->pDesc->guidClass = CLSID_DirectMusicScriptTrack;
track->ref = 1; track->ref = 1;
DMSCRIPT_LockModule(); DMSCRIPT_LockModule();
......
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