THis isn't supported by IFileStream, so just check if the stream is null and open
| 635 | |
| 636 | // THis isn't supported by IFileStream, so just check if the stream is null and open |
| 637 | static int ZipFile_error_file_func(voidpf opaque, voidpf stream) |
| 638 | { |
| 639 | if (stream == nullptr) |
| 640 | { |
| 641 | return -1; |
| 642 | } |
| 643 | |
| 644 | auto* fs = (IFileStream*)stream; |
| 645 | |
| 646 | if (fs->isOpen()) |
| 647 | { |
| 648 | return 0; |
| 649 | } |
| 650 | |
| 651 | return -1; |
| 652 | } |
| 653 | // End of Overrides |
| 654 | |
| 655 | std::string zipFileName; |