dmusic: Get rid of struct collection liCollectionPosition member.

This commit is contained in:
Rémi Bernon 2023-08-31 09:47:12 +02:00 committed by Alexandre Julliard
parent 849c7a6ae1
commit a614527524

View file

@ -31,7 +31,6 @@ struct collection
LONG ref;
IStream *pStm; /* stream from which we load collection and later instruments */
LARGE_INTEGER liCollectionPosition; /* offset in a stream where collection was loaded from */
LARGE_INTEGER liWavePoolTablePosition; /* offset in a stream where wave pool table can be found */
CHAR *szCopyright; /* FIXME: should probably be placed somewhere else */
DLSHEADER *pHeader;
@ -214,12 +213,9 @@ static HRESULT WINAPI collection_stream_Load(IPersistStream *iface,
DMUS_PRIVATE_CHUNK chunk;
DWORD StreamSize, StreamCount, ListSize[2], ListCount[2];
LARGE_INTEGER liMove; /* used when skipping chunks */
ULARGE_INTEGER dlibCollectionPosition, dlibInstrumentPosition, dlibWavePoolPosition;
ULARGE_INTEGER dlibInstrumentPosition, dlibWavePoolPosition;
IStream_AddRef(stream); /* add count for later references */
liMove.QuadPart = 0;
IStream_Seek(stream, liMove, STREAM_SEEK_CUR, &dlibCollectionPosition); /* store offset, in case it'll be needed later */
This->liCollectionPosition.QuadPart = dlibCollectionPosition.QuadPart;
This->pStm = stream;
IStream_Read(stream, &chunk, sizeof(FOURCC) + sizeof(DWORD), NULL);