throw an exception in CMemoryBitstream::SetBitPosition so we can catch it and not crash.

This commit is contained in:
Damiano Galassi committed 2016-11-11 18:18:33 +01:00
1 parent 76e18f2846
commit d32cab09aa
1 file changed
+1 -1
+1 -1
View File
@@ -68,7 +68,7 @@ public:
void SetBitPosition(u_int32_t bitPos) { void SetBitPosition(u_int32_t bitPos) {
if (bitPos > m_numBits) { if (bitPos > m_numBits) {
throw; throw EIO;
} }
m_bitPos = bitPos; m_bitPos = bitPos;
} }