Core/Battle.net: Fixed size check in bit stream

This commit is contained in:
Shauren
2014-06-01 02:36:50 +02:00
parent cc748e2ba4
commit 914d5d5366

View File

@@ -138,7 +138,7 @@ namespace Battlenet
if (!count || !data)
return;
if (_writePos + count > MaxSize)
if ((_writePos >> 3) + count > MaxSize)
throw BitStreamPositionException();
_buffer.resize(_buffer.size() + count);