Corrected BZ_STREAM_END to LZMA_STREAM_END. Also removed redundant condition of LZMA_STREAM_END for error checking.