Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Compression/ZipWriter.cpp @ 4671:42e1f5bde40b
added sanity check
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 28 May 2021 18:44:00 +0200 |
parents | b12faca76a52 |
children | d9942d48fea7 |
comparison
equal
deleted
inserted
replaced
4670:b12faca76a52 | 4671:42e1f5bde40b |
---|---|
459 return; | 459 return; |
460 } | 460 } |
461 else if (outputStream_.get() != NULL) | 461 else if (outputStream_.get() != NULL) |
462 { | 462 { |
463 // New in Orthanc 1.9.4 | 463 // New in Orthanc 1.9.4 |
464 if (IsAppendToExisting()) | |
465 { | |
466 throw OrthancException(ErrorCode_BadSequenceOfCalls, "Cannot append to output streams"); | |
467 } | |
468 | |
464 hasFileInZip_ = false; | 469 hasFileInZip_ = false; |
465 | 470 |
466 zlib_filefunc64_def funcs; | 471 zlib_filefunc64_def funcs; |
467 memset(&funcs, 0, sizeof(funcs)); | 472 memset(&funcs, 0, sizeof(funcs)); |
468 | 473 |