mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-21 07:11: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;
|
MxU32 length = p_header->GetLength() + MxDSChunk::GetHeaderSize() + 8;
|
||||||
MxDSBuffer* buffer = new MxDSBuffer();
|
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) {
|
(*p_streamingAction = new MxDSStreamingAction((MxDSStreamingAction&) *p_action)) == NULL) {
|
||||||
delete buffer;
|
delete buffer;
|
||||||
delete p_header;
|
delete p_header;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user