dswave: Add missing segment vtbl initialisation (with DirectMusicSegment8_Segment_Vtbl).

This commit is contained in:
Christian Costa 2008-12-16 21:09:01 +01:00 committed by Alexandre Julliard
parent c66a9cd418
commit 7fb33f0864

View File

@ -732,6 +732,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicWaveImpl (LPCGUID lpcGUID, LPVOID* ppobj,
return E_OUTOFMEMORY;
}
obj->UnknownVtbl = &DirectMusicWave_Unknown_Vtbl;
obj->SegmentVtbl = &DirectMusicSegment8_Segment_Vtbl;
obj->ObjectVtbl = &DirectMusicWave_Object_Vtbl;
obj->PersistStreamVtbl = &DirectMusicWave_PersistStream_Vtbl;
obj->pDesc = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(DMUS_OBJECTDESC));