dmime: Remove "#if 1" preprocessor directives.
This commit is contained in:
parent
81c42ce710
commit
a4664409ef
|
@ -1109,7 +1109,6 @@ static HRESULT IDirectMusicSegment8Impl_IPersistStream_ParseSegmentForm (LPPERSI
|
|||
case DMUS_FOURCC_SEGMENT_CHUNK: {
|
||||
DWORD checkSz = sizeof(FOURCC);
|
||||
TRACE_(dmfile)(": segment chunk\n");
|
||||
#if 1
|
||||
/** DX 7 */
|
||||
IStream_Read (pStm, &This->header.dwRepeats, sizeof(This->header.dwRepeats), NULL);
|
||||
checkSz += sizeof(This->header.dwRepeats);
|
||||
|
@ -1145,7 +1144,6 @@ static HRESULT IDirectMusicSegment8Impl_IPersistStream_ParseSegmentForm (LPPERSI
|
|||
IStream_Read (pStm, &This->header.rtPlayStart, sizeof(This->header.rtPlayStart), NULL);
|
||||
checkSz += sizeof(This->header.rtPlayStart);
|
||||
}
|
||||
#endif
|
||||
liMove.QuadPart = Chunk.dwSize - checkSz + sizeof(FOURCC);
|
||||
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
||||
break;
|
||||
|
|
|
@ -460,7 +460,6 @@ static HRESULT WINAPI IDirectMusicSegTriggerTrack_IPersistStream_Load (LPPERSIST
|
|||
|
||||
TRACE("(%p, %p): Loading\n", This, pStm);
|
||||
|
||||
#if 1
|
||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||
TRACE_(dmfile)(": %s chunk (size = %d)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||
switch (Chunk.fccID) {
|
||||
|
@ -491,7 +490,6 @@ static HRESULT WINAPI IDirectMusicSegTriggerTrack_IPersistStream_Load (LPPERSIST
|
|||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
|
@ -328,14 +328,12 @@ static HRESULT WINAPI IDirectMusicTempoTrack_IPersistStream_Load (LPPERSISTSTREA
|
|||
LPDMUS_PRIVATE_TEMPO_ITEM pNewItem = NULL;
|
||||
DWORD nItem = 0;
|
||||
FIXME("(%p, %p): Loading not fully implemented yet\n", This, pStm);
|
||||
|
||||
#if 1
|
||||
|
||||
IStream_Read (pStm, &Chunk, sizeof(FOURCC)+sizeof(DWORD), NULL);
|
||||
TRACE_(dmfile)(": %s chunk (size = %d)", debugstr_fourcc (Chunk.fccID), Chunk.dwSize);
|
||||
switch (Chunk.fccID) {
|
||||
case DMUS_FOURCC_TEMPO_TRACK: {
|
||||
TRACE_(dmfile)(": Tempo track\n");
|
||||
#if 1
|
||||
IStream_Read (pStm, &StreamSize, sizeof(DWORD), NULL);
|
||||
StreamSize -= sizeof(DWORD);
|
||||
StreamCount = 0;
|
||||
|
@ -356,10 +354,6 @@ static HRESULT WINAPI IDirectMusicTempoTrack_IPersistStream_Load (LPPERSISTSTREA
|
|||
StreamCount += sizeof(item);
|
||||
TRACE_(dmfile)(": StreamCount[0] = %d < StreamSize[0] = %d\n", StreamCount, StreamSize);
|
||||
} while (StreamCount < StreamSize);
|
||||
#else
|
||||
liMove.QuadPart = Chunk.dwSize;
|
||||
IStream_Seek (pStm, liMove, STREAM_SEEK_CUR, NULL);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
@ -369,7 +363,6 @@ static HRESULT WINAPI IDirectMusicTempoTrack_IPersistStream_Load (LPPERSISTSTREA
|
|||
return E_FAIL;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue