mirror of
https://github.com/libAthena/athena.git
synced 2025-07-06 13:16:18 +00:00
Relax 0-size buffer error for MemoryWriter
This commit is contained in:
parent
0fa861b708
commit
57e5196e72
@ -26,13 +26,6 @@ MemoryWriter::MemoryWriter(atUint8* data, atUint64 length, bool takeOwnership)
|
|||||||
setError();
|
setError();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (length == 0)
|
|
||||||
{
|
|
||||||
atError("length cannot be 0");
|
|
||||||
setError();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MemoryWriter::~MemoryWriter()
|
MemoryWriter::~MemoryWriter()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user