diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-05-27 07:08:11 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-05-27 07:08:11 +0000 |
commit | e3e0c6c7d2d37b902060ffefc27270675fbf246b (patch) | |
tree | 33947ff5cf68dd2ae0a871c4cc484822cc121ba1 /zinflate.cpp | |
parent | d15d302d51d01ab91074e6233971703e4023c063 (diff) | |
download | cryptopp-e3e0c6c7d2d37b902060ffefc27270675fbf246b.tar.gz |
copy fix over from 4.x branch
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@75 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'zinflate.cpp')
-rw-r--r-- | zinflate.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/zinflate.cpp b/zinflate.cpp index 2582cf1..685268f 100644 --- a/zinflate.cpp +++ b/zinflate.cpp @@ -303,9 +303,6 @@ void Inflator::ProcessInput(bool flush) { while (true) { - if (m_inQueue.IsEmpty()) - return; - switch (m_state) { case PRE_STREAM: @@ -337,6 +334,8 @@ void Inflator::ProcessInput(bool flush) ProcessPoststreamTail(); m_state = m_repeat ? PRE_STREAM : AFTER_END; Output(0, NULL, 0, GetAutoSignalPropagation(), true); // TODO: non-blocking + if (m_inQueue.IsEmpty()) + return; break; case AFTER_END: m_inQueue.TransferTo(*AttachedTransformation()); |