Skip to content

Commit

Permalink
Restore SUCCESS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
disinvite committed Dec 22, 2024
1 parent 52b0b7f commit 2bd75a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LEGO1/omni/src/stream/mxdsbuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2bd75a5

Please sign in to comment.