diff options
Diffstat (limited to 'CPP/7zip/Archive/Common/CoderMixerMT.cpp')
-rwxr-xr-x | CPP/7zip/Archive/Common/CoderMixerMT.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CPP/7zip/Archive/Common/CoderMixerMT.cpp b/CPP/7zip/Archive/Common/CoderMixerMT.cpp index ad6e12d8..ad32896c 100755 --- a/CPP/7zip/Archive/Common/CoderMixerMT.cpp +++ b/CPP/7zip/Archive/Common/CoderMixerMT.cpp @@ -45,11 +45,11 @@ STDMETHODIMP CCoderMixerMT::Code(ISequentialInStream *inStream, RINOK(_coders[i].Create()); } - while (_streamBinders.Size() + 1 < _coders.Size()) + _streamBinders.Clear(); + for (i = 0; i + 1 < _coders.Size(); i++) { _streamBinders.Add(CStreamBinder()); - int i = _streamBinders.Size() - 1; - CStreamBinder &sb = _streamBinders.Back(); + CStreamBinder &sb = _streamBinders[i]; RINOK(sb.CreateEvents()); sb.CreateStreams(&_coders[i + 1].InStream, &_coders[i].OutStream); } |