throw an exception in CMemoryBitstream::SetBitPosition so we can catch it and not crash.
This commit is contained in:
1 parent
76e18f2846
commit
d32cab09aa
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user