mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-20 23:01:16 +00:00
Restore SUCCESS tests
This commit is contained in:
parent
52b0b7fef3
commit
2bd75a5ce3
@ -258,7 +258,8 @@ MxResult MxDSBuffer::ParseChunk(
|
||||
MxU32 length = p_header->GetLength() + MxDSChunk::GetHeaderSize() + 8;
|
||||
MxDSBuffer* buffer = new MxDSBuffer();
|
||||
|
||||
if (!buffer || buffer->AllocateBuffer(length, e_allocate) || buffer->CalcBytesRemaining((MxU8*) p_data) ||
|
||||
if (!buffer || buffer->AllocateBuffer(length, e_allocate) != SUCCESS ||
|
||||
buffer->CalcBytesRemaining((MxU8*) p_data) != SUCCESS ||
|
||||
(*p_streamingAction = new MxDSStreamingAction((MxDSStreamingAction&) *p_action)) == NULL) {
|
||||
delete buffer;
|
||||
delete p_header;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user