react-native-update 10.34.3 → 10.34.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/harmony/pushy/src/main/cpp/HDiffPatch/CHANGELOG.md +34 -172
- package/harmony/pushy/src/main/cpp/HDiffPatch/LICENSE +4 -4
- package/harmony/pushy/src/main/cpp/HDiffPatch/Makefile +63 -379
- package/harmony/pushy/src/main/cpp/HDiffPatch/README.md +170 -415
- package/harmony/pushy/src/main/cpp/HDiffPatch/_atosize.h +10 -54
- package/harmony/pushy/src/main/cpp/HDiffPatch/_clock_for_demo.h +1 -13
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Android.mk +18 -171
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/Application.mk +4 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.c +7 -38
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch.h +4 -15
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/hpatch_jni.c +12 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/java/com/github/sisong/HPatch.java +4 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffPatch.workspace +8 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HDiffZ.cbp +219 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/HPatchZ.cbp +156 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/codeblocks/unitTest.cbp +65 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffPatch.sln +105 -155
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj +236 -363
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HDiffZ.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj +317 -347
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/HPatchZ.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj +181 -295
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/unitTest.vcxproj.user +3 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/contents.xcworkspacedata +0 -9
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/bestParams.xcodeproj/project.pbxproj +14 -53
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hdiffz.xcodeproj/project.pbxproj +32 -162
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/hpatchz.xcodeproj/project.pbxproj +22 -89
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/lzma.xcodeproj/project.pbxproj +13 -237
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/testHashClash.xcodeproj/project.pbxproj +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/unitTest.xcodeproj/project.pbxproj +14 -194
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zstd.xcodeproj/project.pbxproj +10 -30
- package/harmony/pushy/src/main/cpp/HDiffPatch/checksum_plugin_demo.h +3 -458
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.cpp +71 -106
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_parallel.h +3 -3
- package/harmony/pushy/src/main/cpp/HDiffPatch/compress_plugin_demo.h +110 -484
- package/harmony/pushy/src/main/cpp/HDiffPatch/decompress_plugin_demo.h +193 -835
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.cpp +50 -99
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff.h +4 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.cpp +8 -147
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_diff_tools.h +6 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/dir_manifest.cpp +25 -7
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_diff/file_for_dirDiff.h +113 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.c +97 -163
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch.h +39 -49
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.c +15 -15
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_tools.h +2 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/dir_patch_types.h +4 -8
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.c +57 -72
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_dir_output.h +13 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.c +1 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/new_stream.h +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.c +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/ref_stream.h +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.c +2 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/dirDiffPatch/dir_patch/res_handle_limit.h +1 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.c +100 -311
- package/harmony/pushy/src/main/cpp/HDiffPatch/file_for_patch.h +72 -53
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz.cpp +487 -888
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatch_dir_listener.h +28 -45
- package/harmony/pushy/src/main/cpp/HDiffPatch/hpatchz.c +247 -812
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.cpp +544 -1265
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff.h +38 -123
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_types.h +0 -115
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.cpp +102 -272
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/bytes_rle.h +12 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.cpp +4 -18
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/compress_detect.h +5 -7
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/{divsufsort.cpp → divsufsort.c} +8 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.c.inc.h +164 -91
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort.h +102 -5
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.c +13 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.h +97 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort_private.h +44 -23
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/sssort.c.inc.h +89 -54
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/trsort.c.inc.h +55 -48
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/utils.c.inc.h +381 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.c +47 -110
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/adler_roll.h +4 -11
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/bloom_filter.h +26 -53
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/covers.h +25 -103
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.cpp +130 -271
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/digest_matcher.h +7 -17
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.cpp +37 -628
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/limit_mem_diff/stream_serialize.h +43 -203
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/mem_buf.h +10 -14
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/pack_uint.h +7 -22
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.cpp +46 -132
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/suffix_string.h +9 -48
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.c +299 -650
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch.h +82 -120
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_private.h +7 -87
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/patch_types.h +9 -119
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.cpp +6 -2
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_channel.h +15 -192
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.cpp +367 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import.h +56 -31
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/_private_searchBestParams.cpp +1 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/hpatchz_test.cpp +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/testHashClash.cpp +31 -225
- package/harmony/pushy/src/main/cpp/HDiffPatch/test/unit_test.cpp +94 -566
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zAsm.asm +28 -222
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/7zCrcOpt.asm +117 -228
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/AesOpt.asm +173 -678
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzmaDecOpt.asm +22 -103
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/XzCrc64Opt.asm +167 -485
- package/harmony/pushy/src/main/cpp/lzma/C/7z.h +6 -8
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.c +30 -39
- package/harmony/pushy/src/main/cpp/lzma/C/7zAlloc.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/7zArcIn.c +217 -232
- package/harmony/pushy/src/main/cpp/lzma/C/7zBuf.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.c +68 -404
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrc.h +6 -9
- package/harmony/pushy/src/main/cpp/lzma/C/7zCrcOpt.c +79 -163
- package/harmony/pushy/src/main/cpp/lzma/C/7zDec.c +78 -160
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.c +58 -215
- package/harmony/pushy/src/main/cpp/lzma/C/7zFile.h +6 -15
- package/harmony/pushy/src/main/cpp/lzma/C/7zStream.c +23 -46
- package/harmony/pushy/src/main/cpp/lzma/C/7zTypes.h +89 -311
- package/harmony/pushy/src/main/cpp/lzma/C/7zVersion.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.c +68 -191
- package/harmony/pushy/src/main/cpp/lzma/C/Aes.h +8 -30
- package/harmony/pushy/src/main/cpp/lzma/C/AesOpt.c +108 -926
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.c +96 -246
- package/harmony/pushy/src/main/cpp/lzma/C/Alloc.h +8 -33
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.c +144 -177
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2.h +42 -228
- package/harmony/pushy/src/main/cpp/lzma/C/Bcj2Enc.c +182 -377
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.c +143 -622
- package/harmony/pushy/src/main/cpp/lzma/C/Bra.h +40 -81
- package/harmony/pushy/src/main/cpp/lzma/C/Bra86.c +58 -163
- package/harmony/pushy/src/main/cpp/lzma/C/BraIA64.c +48 -9
- package/harmony/pushy/src/main/cpp/lzma/C/Compiler.h +15 -228
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.c +133 -885
- package/harmony/pushy/src/main/cpp/lzma/C/CpuArch.h +78 -428
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.c +31 -136
- package/harmony/pushy/src/main/cpp/lzma/C/Delta.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.c +62 -53
- package/harmony/pushy/src/main/cpp/lzma/C/DllSecur.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.c +495 -1114
- package/harmony/pushy/src/main/cpp/lzma/C/LzFind.h +25 -64
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.c +400 -969
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindMt.h +24 -37
- package/harmony/pushy/src/main/cpp/lzma/C/LzHash.h +48 -25
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.c +7 -12
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Dec.h +7 -8
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.c +83 -96
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2DecMt.h +9 -11
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.c +92 -96
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma2Enc.h +9 -12
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Dec.c +4 -3
- package/harmony/pushy/src/main/cpp/lzma/C/Lzma86Enc.c +6 -3
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.c +206 -384
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaDec.h +8 -11
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.c +315 -489
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaEnc.h +9 -18
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.c +3 -5
- package/harmony/pushy/src/main/cpp/lzma/C/LzmaLib.h +14 -21
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.c +87 -90
- package/harmony/pushy/src/main/cpp/lzma/C/MtCoder.h +25 -28
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.c +88 -74
- package/harmony/pushy/src/main/cpp/lzma/C/MtDec.h +20 -21
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd.h +34 -118
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.c +293 -712
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7.h +70 -109
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Dec.c +116 -237
- package/harmony/pushy/src/main/cpp/lzma/C/Ppmd7Enc.c +95 -245
- package/harmony/pushy/src/main/cpp/lzma/C/Precomp.h +5 -122
- package/harmony/pushy/src/main/cpp/lzma/C/RotateDefs.h +4 -24
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.c +143 -387
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256.h +7 -67
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.c +114 -241
- package/harmony/pushy/src/main/cpp/lzma/C/Sort.h +7 -4
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.c +14 -731
- package/harmony/pushy/src/main/cpp/lzma/C/Threads.h +14 -204
- package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.c +396 -0
- package/harmony/pushy/src/main/cpp/lzma/C/ThreadsP.h +31 -0
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7z.dsp +2 -10
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/7zMain.c +79 -282
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/Precomp.h +7 -10
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile +3 -7
- package/harmony/pushy/src/main/cpp/lzma/C/Util/7z/makefile.gcc +75 -32
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.c +56 -111
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/LzmaUtil.dsp +0 -24
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile +0 -2
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/makefile.gcc +41 -18
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLib.dsp +2 -30
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/LzmaLibExports.c +6 -7
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/makefile +2 -27
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/Precomp.h +7 -10
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/SfxSetup.c +22 -39
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile +2 -9
- package/harmony/pushy/src/main/cpp/lzma/C/Util/SfxSetup/makefile_con +1 -3
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.c +3 -5
- package/harmony/pushy/src/main/cpp/lzma/C/Xz.h +47 -129
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.c +43 -97
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64.h +8 -8
- package/harmony/pushy/src/main/cpp/lzma/C/XzCrc64Opt.c +36 -228
- package/harmony/pushy/src/main/cpp/lzma/C/XzDec.c +295 -405
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.c +139 -194
- package/harmony/pushy/src/main/cpp/lzma/C/XzEnc.h +11 -15
- package/harmony/pushy/src/main/cpp/lzma/C/XzIn.c +134 -200
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip.mak +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Aes.mak +1 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zCompressionMode.h +13 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.cpp +90 -120
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zDecode.h +6 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.cpp +140 -183
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zEncode.h +20 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zExtract.cpp +57 -78
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.cpp +44 -169
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zFolderInStream.h +17 -57
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.cpp +109 -141
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandler.h +57 -54
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHandlerOut.cpp +116 -336
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zHeader.h +9 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.cpp +136 -234
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zIn.h +26 -35
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zItem.h +5 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.cpp +155 -280
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zOut.h +40 -51
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.cpp +59 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zProperties.h +2 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zRegister.cpp +2 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.cpp +3 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zSpecStream.h +9 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.cpp +387 -975
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/7zUpdate.h +16 -44
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/7z/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive.def +0 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Archive2.def +0 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/ArchiveExports.cpp +8 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.cpp +87 -106
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/CoderMixer2.h +57 -57
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/DummyOutStream.h +8 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.cpp +43 -126
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/HandlerOut.h +18 -77
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.cpp +9 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/InStreamWithCRC.h +23 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.cpp +9 -61
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ItemNameUtils.h +3 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.cpp +27 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/MultiStream.h +26 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/OutStreamWithCRC.h +8 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/ParseProperties.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/Common/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/DllExports2.cpp +10 -63
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/IArchive.h +173 -319
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/LzmaHandler.cpp +113 -92
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/SplitHandler.cpp +53 -47
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.cpp +208 -352
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Archive/XzHandler.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Asm.mak +3 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/Alone.dsp +47 -227
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile +5 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zExtractR/makefile +2 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Format7zR/makefile +1 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaAlone.cpp +53 -71
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/LzmaCon.dsp +22 -85
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile +4 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/LzmaCon/makefile.gcc +166 -102
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SFXCon.dsp +4 -109
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/SfxCon.cpp +30 -69
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile +7 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/resource.rc +1 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.cpp +16 -16
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractCallbackSfx.h +12 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.cpp +9 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/ExtractEngine.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SFXSetup.dsp +5 -74
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/SfxSetup.cpp +51 -58
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/StdAfx.h +10 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXSetup/makefile +5 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SFXWin.dsp +6 -92
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/SfxWin.cpp +19 -46
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/StdAfx.h +11 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/makefile +5 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXWin/resource.rc +0 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.cpp +28 -136
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CWrappers.h +5 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.cpp +62 -74
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/CreateCoder.h +24 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.cpp +7 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilePathAutoRename.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.cpp +100 -548
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FileStreams.h +86 -125
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.cpp +116 -258
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/FilterCoder.h +76 -72
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.cpp +15 -34
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InBuffer.h +9 -38
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.cpp +82 -192
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/InOutTempBuffer.h +28 -25
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.cpp +52 -78
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LimitedStreams.h +83 -52
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/LockedStream.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodId.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.cpp +67 -323
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MethodProps.h +38 -123
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.cpp +8 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OffsetStream.h +13 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.cpp +12 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/OutBuffer.h +7 -74
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.cpp +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/ProgressUtils.h +13 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/PropId.cpp +1 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterArc.h +14 -16
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/RegisterCodec.h +16 -16
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.cpp +50 -45
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamBinder.h +21 -39
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.cpp +42 -47
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamObjects.h +53 -42
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.cpp +4 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/StreamUtils.h +2 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/UniqBlocks.h +5 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.cpp +9 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/VirtThread.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.cpp +355 -556
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Coder.h +59 -66
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Bcj2Register.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.cpp +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjCoder.h +13 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BcjRegister.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.cpp +5 -88
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchMisc.h +18 -42
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/BranchRegister.cpp +16 -33
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/ByteSwap.cpp +53 -52
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CodecExports.cpp +30 -64
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.cpp +22 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/CopyCoder.h +26 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/DeltaFilter.cpp +28 -26
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.cpp +28 -30
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Decoder.h +54 -45
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.cpp +12 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Encoder.h +22 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/Lzma2Register.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.cpp +26 -33
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaDecoder.h +51 -51
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.cpp +40 -232
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaEncoder.h +14 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/LzmaRegister.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.cpp +35 -84
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdDecoder.h +41 -42
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.cpp +25 -66
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdEncoder.h +17 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/PpmdRegister.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.cpp +12 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzDecoder.h +32 -26
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.cpp +16 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Compress/XzEncoder.h +20 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc.mak +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crc64.mak +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.cpp +32 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAes.h +18 -30
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/7zAesRegister.cpp +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.cpp +43 -208
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAes.h +25 -90
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/MyAesReg.cpp +4 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.cpp +21 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/RandGen.h +3 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Crypto/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/GuiCommon.rc +3 -38
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Guid.txt +3 -26
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/ICoder.h +172 -253
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IDecl.h +7 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IPassword.h +12 -43
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IProgress.h +9 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/IStream.h +50 -133
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec.mak +2 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/MyVersionInfo.rc +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/PropID.h +2 -53
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.cpp +177 -329
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/Client7z.dsp +1 -97
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile +1 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.cpp +183 -687
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveCommandLine.h +15 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.cpp +913 -2275
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveExtractCallback.h +115 -353
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.cpp +106 -127
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveName.h +3 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.cpp +35 -272
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ArchiveOpenCallback.h +64 -134
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.cpp +1200 -2608
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Bench.h +20 -64
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DefaultName.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/DirItem.h +36 -253
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.cpp +233 -774
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/EnumDirItems.h +6 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExitCode.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.cpp +63 -156
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Extract.h +10 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractMode.h +2 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.cpp +6 -22
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ExtractingFilePath.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.cpp +65 -1991
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/HashCalc.h +29 -241
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/IFileExtractCallback.h +47 -45
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.cpp +179 -442
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/LoadCodecs.h +89 -147
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.cpp +380 -529
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/OpenArchive.h +42 -75
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.cpp +86 -163
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/PropIDUtils.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Property.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.cpp +15 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SetProperties.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/SortUtils.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.cpp +1 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/TempFiles.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.cpp +368 -595
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/Update.h +47 -68
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateAction.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.cpp +146 -444
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateCallback.h +68 -103
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.cpp +42 -111
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdatePair.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.cpp +3 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/UpdateProduce.h +6 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.cpp +35 -25
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/WorkDir.h +4 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Common/ZipRegistry.h +9 -91
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/BenchCon.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.mak +1 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Console.manifest +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.cpp +19 -48
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ConsoleClose.h +12 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.cpp +41 -162
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/ExtractCallbackConsole.h +41 -88
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.cpp +81 -140
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/HashCon.h +17 -27
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.cpp +124 -182
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/List.h +7 -22
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/Main.cpp +109 -590
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/MainAr.cpp +2 -62
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.cpp +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/OpenCallbackConsole.h +10 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.cpp +10 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/PercentPrinter.h +9 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.cpp +24 -320
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UpdateCallbackConsole.h +26 -50
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.cpp +5 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/UserInputUtils.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile +2 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.cpp +6 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Explorer/MyMessages.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.cpp +195 -302
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/BrowseDialog.h +4 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.cpp +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ComboDialog.h +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/DialogSize.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.cpp +181 -416
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ExtractCallback.h +197 -216
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/FormatUtils.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/LangUtils.h +5 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MyWindowsNew.h +5 -48
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.cpp +49 -215
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.h +30 -50
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialog.rc +1 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/OverwriteDialogRes.h +3 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.cpp +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.h +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PasswordDialog.rc +0 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.cpp +10 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog.h +17 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.cpp +130 -276
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2.h +52 -56
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2Res.h +1 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/ProgressDialog2a.rc +3 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyName.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/PropertyNameRes.h +0 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.cpp +89 -185
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/SysIconUtils.h +20 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resource.h +1 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/resourceGui.h +0 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/Extract.rc +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.cpp +33 -36
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractDialog.h +15 -15
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.cpp +22 -39
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/ExtractGUI.h +3 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/HashGUI.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Build.mak +13 -109
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/AutoPtr.h +14 -25
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CRC.cpp +1 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.cpp +90 -1
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/C_FileIO.h +49 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ComTry.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.cpp +7 -41
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CommandLineParser.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common.h +29 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/CrcReg.cpp +45 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Defs.h +2 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynamicBuffer.h +5 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.cpp +110 -132
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/IntToString.h +9 -35
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Lang.h +5 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.cpp +31 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/ListFileUtils.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer.h +21 -59
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyBuffer2.h +10 -95
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyCom.h +81 -497
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyException.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyGuidDef.h +9 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyInitGuid.h +5 -17
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyLinux.h +2 -35
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.cpp +164 -347
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyString.h +35 -246
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyTypes.h +8 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyUnknown.h +11 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyVector.h +94 -184
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.cpp +11 -158
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/MyWindows.h +54 -148
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.cpp +27 -204
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/NewHandler.h +5 -38
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Reg.cpp +16 -43
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdAfx.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.cpp +11 -20
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdInStream.h +5 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.cpp +39 -124
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StdOutStream.h +11 -27
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.cpp +15 -458
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringConvert.h +2 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.cpp +89 -99
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/StringToInt.h +2 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.cpp +11 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/TextConfig.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.cpp +102 -677
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/UTFConvert.h +5 -377
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.cpp +84 -197
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Wildcard.h +25 -107
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/XzCrc64Reg.cpp +14 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/COM.h +8 -24
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.cpp +113 -197
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/CommonDialog.h +12 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ComboBox.h +10 -22
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/CommandBar.h +6 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.cpp +47 -242
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Dialog.h +51 -94
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Edit.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ImageList.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.cpp +26 -33
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ListView.h +22 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ProgressBar.h +13 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.cpp +34 -56
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/PropertyPage.h +9 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ReBar.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Static.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StatusBar.h +5 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/ToolBar.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Trackbar.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.cpp +6 -8
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Control/Window2.h +7 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.cpp +8 -77
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/DLL.h +10 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Defs.h +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.cpp +2 -69
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ErrorMsg.h +2 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.cpp +80 -728
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileDir.h +7 -62
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.cpp +56 -756
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileFind.h +19 -205
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.cpp +47 -569
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileIO.h +28 -283
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileLink.cpp +112 -369
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileMapping.h +3 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.cpp +113 -185
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileName.h +14 -41
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.cpp +10 -66
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/FileSystem.h +2 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Handle.h +4 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.cpp +14 -29
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryLock.h +2 -2
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/NtCheck.h +2 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.cpp +56 -102
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariant.h +9 -68
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.cpp +14 -150
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/PropVariantConv.h +3 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.cpp +128 -212
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Registry.h +20 -32
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.cpp +4 -4
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/ResourceString.h +2 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.cpp +18 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SecurityUtils.h +56 -39
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.cpp +58 -539
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Shell.h +14 -49
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/StdAfx.h +2 -5
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.cpp +0 -77
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Synchronization.h +18 -240
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.cpp +38 -317
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/System.h +5 -154
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Thread.h +10 -18
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.cpp +37 -291
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/TimeUtils.h +10 -124
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.cpp +7 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Window.h +19 -98
- package/harmony/pushy/src/main/cpp/lzma/CS/7zip/Compress/LzmaAlone/LzmaAlone.csproj +90 -0
- package/harmony/pushy/src/main/cpp/lzma/DOC/Methods.txt +2 -6
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-history.txt +0 -205
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma-sdk.txt +13 -93
- package/harmony/pushy/src/main/cpp/lzma/DOC/lzma.txt +13 -30
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zS2con.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zSD.sfx +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zdec.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/7zr.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/lzma.exe +0 -0
- package/harmony/pushy/src/main/cpp/lzma/bin/x64/7zr.exe +0 -0
- package/package.json +1 -1
- package/react-native-update.podspec +0 -1
- package/react-native.config.js +1 -0
- package/src/client.ts +1 -2
- package/src/type.ts +1 -0
- package/harmony/pushy/src/main/cpp/HDiffPatch/README_cn.md +0 -547
- package/harmony/pushy/src/main/cpp/HDiffPatch/_hextobytes.h +0 -112
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.cpp +0 -389
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bsdiff_wrapper.h +0 -73
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.c +0 -266
- package/harmony/pushy/src/main/cpp/HDiffPatch/bsdiff_wrapper/bspatch_wrapper.h +0 -58
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.bat +0 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/android_ndk_jni_mk/build_libs_patchers.sh +0 -1
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/bzip2.vcxproj +0 -228
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/hpatchz_test.vcxproj +0 -215
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/libdeflate.vcxproj +0 -256
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/longPathAware.exe.manifest +0 -7
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/lzma.vcxproj +0 -271
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/testHashClash.vcxproj +0 -228
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zlib.vcxproj +0 -242
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/vc/zstd.vcxproj +0 -287
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/HDiffPatch.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -8
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/libdeflate.xcodeproj/project.pbxproj +0 -286
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode/zlib.xcodeproj/project.pbxproj +0 -308
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.h +0 -33
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatch_objc/hpatch_objc.m +0 -33
- package/harmony/pushy/src/main/cpp/HDiffPatch/builds/xcode_iOS_hpatchz/hpatchz.xcodeproj/project.pbxproj +0 -774
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.c +0 -31
- package/harmony/pushy/src/main/cpp/HDiffPatch/hdiffz_import_patch.h +0 -42
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/diff_for_hpatch_lite.h +0 -74
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.cpp +0 -478
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/match_block.h +0 -222
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/libdivsufsort/divsufsort64.cpp +0 -14
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.cpp +0 -168
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/match_inplace.h +0 -44
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HDiff/private_diff/qsort_parallel.h +0 -125
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.c +0 -243
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hcache_old_mt.h +0 -51
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.c +0 -153
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hinput_mt.h +0 -54
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.c +0 -158
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_houtput_mt.h +0 -49
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.c +0 -294
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_hpatch_mt.h +0 -59
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/_patch_private_mt.h +0 -217
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.c +0 -349
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatch/hpatch_mt/hpatch_mt.h +0 -110
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.c +0 -366
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite.h +0 -91
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_input_cache.h +0 -31
- package/harmony/pushy/src/main/cpp/HDiffPatch/libHDiffPatch/HPatchLite/hpatch_lite_types.h +0 -106
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.c +0 -497
- package/harmony/pushy/src/main/cpp/HDiffPatch/libParallel/parallel_import_c.h +0 -106
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.cpp +0 -254
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_match_in_old_sign.h +0 -39
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/_sign_diff_type.h +0 -37
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.cpp +0 -62
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sign_diff/sign_diff.h +0 -44
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dict_decompress_plugin.h +0 -156
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.cpp +0 -440
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/dir_sync_client.h +0 -88
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.cpp +0 -332
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_old.h +0 -48
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/match_in_types.h +0 -198
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.cpp +0 -697
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client.h +0 -74
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_private.h +0 -262
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type.h +0 -174
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_client_type_private.h +0 -174
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.cpp +0 -252
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_diff_data.h +0 -67
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.cpp +0 -680
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_client/sync_info_client.h +0 -137
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dict_compress_plugin.h +0 -83
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.cpp +0 -125
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/dir_sync_make.h +0 -56
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/hsynz_plugin.h +0 -55
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.cpp +0 -147
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/match_in_new.h +0 -38
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.cpp +0 -354
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_info_make.h +0 -76
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.cpp +0 -521
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make.h +0 -69
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_hash_clash.h +0 -122
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/sync_make/sync_make_private.h +0 -66
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type.h +0 -36
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_type_private.h +0 -81
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.cpp +0 -247
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_client_wrapper.h +0 -71
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.cpp +0 -351
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_info_client.h +0 -42
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.cpp +0 -124
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_client_wrapper/zsync_match_in_old.h +0 -38
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.cpp +0 -203
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_info_make.h +0 -55
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.cpp +0 -79
- package/harmony/pushy/src/main/cpp/HDiffPatch/libhsync/zsync_make_wrapper/zsync_make_wrapper.h +0 -66
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.cpp +0 -628
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcdiff_wrapper.h +0 -95
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_code_table.h +0 -78
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.c +0 -950
- package/harmony/pushy/src/main/cpp/HDiffPatch/vcdiff_wrapper/vcpatch_wrapper.h +0 -72
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/7zAsm.S +0 -181
- package/harmony/pushy/src/main/cpp/lzma/Asm/arm64/LzmaDecOpt.S +0 -1487
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/LzFindOpt.asm +0 -540
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sha256Opt.asm +0 -275
- package/harmony/pushy/src/main/cpp/lzma/Asm/x86/Sort.asm +0 -860
- package/harmony/pushy/src/main/cpp/lzma/C/7zWindows.h +0 -101
- package/harmony/pushy/src/main/cpp/lzma/C/7zip_gcc_c.mak +0 -360
- package/harmony/pushy/src/main/cpp/lzma/C/Asm_c.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/LzFindOpt.c +0 -578
- package/harmony/pushy/src/main/cpp/lzma/C/Sha256Opt.c +0 -451
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.c +0 -835
- package/harmony/pushy/src/main/cpp/lzma/C/SwapBytes.h +0 -17
- package/harmony/pushy/src/main/cpp/lzma/C/Util/Lzma/Precomp.h +0 -13
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.c +0 -4
- package/harmony/pushy/src/main/cpp/lzma/C/Util/LzmaLib/Precomp.h +0 -13
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_arm64.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_clang_x86.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_arm64.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x64.mak +0 -10
- package/harmony/pushy/src/main/cpp/lzma/C/var_gcc_x86.mak +0 -10
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_arm64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/var_mac_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang.mak +0 -1
- package/harmony/pushy/src/main/cpp/lzma/C/warn_clang_mac.mak +0 -1
- package/harmony/pushy/src/main/cpp/lzma/C/warn_gcc.mak +0 -51
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/7zip_gcc.mak +0 -1370
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/Alone7z/makefile.gcc +0 -279
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Bundles/SFXCon/makefile.gcc +0 -215
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.cpp +0 -855
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Common/MultiOutStream.h +0 -160
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzFindOpt.mak +0 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/LzmaDec_gcc.mak +0 -14
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sha256.mak +0 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/Sort.mak +0 -6
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Client7z/makefile.gcc +0 -72
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/Console/makefile.gcc +0 -187
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.cpp +0 -218
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialog.h +0 -48
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/MemDialogRes.h +0 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/FileManager/StdAfx.h +0 -67
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/UI/GUI/7zG.exe.manifest +0 -23
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_arm64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_clang_x86.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_arm64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_gcc_x86.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_arm64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/cmpl_mac_x64.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_arm64.mak +0 -19
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_clang_x86.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_arm64.mak +0 -12
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_gcc_x86.mak +0 -10
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_arm64.mak +0 -13
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/var_mac_x64.mak +0 -11
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang.mak +0 -3
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_clang_mac.mak +0 -9
- package/harmony/pushy/src/main/cpp/lzma/CPP/7zip/warn_gcc.mak +0 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Common0.h +0 -330
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.cpp +0 -93
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/DynLimBuf.h +0 -41
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/LzFindPrepare.cpp +0 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/Common/Sha256Prepare.cpp +0 -7
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.cpp +0 -130
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/Clipboard.h +0 -28
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.cpp +0 -36
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/MemoryGlobal.h +0 -55
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.cpp +0 -1251
- package/harmony/pushy/src/main/cpp/lzma/CPP/Windows/SystemInfo.h +0 -19
- package/ios/ImportReact.h +0 -2
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
#include "StdAfx.h"
|
|
4
4
|
|
|
5
|
-
// #include <stdio.h>
|
|
6
|
-
|
|
7
5
|
#include "Update.h"
|
|
8
6
|
|
|
9
7
|
#include "../../../Common/StringConvert.h"
|
|
@@ -18,8 +16,6 @@
|
|
|
18
16
|
|
|
19
17
|
#include "../../Common/FileStreams.h"
|
|
20
18
|
#include "../../Common/LimitedStreams.h"
|
|
21
|
-
#include "../../Common/MultiOutStream.h"
|
|
22
|
-
#include "../../Common/StreamUtils.h"
|
|
23
19
|
|
|
24
20
|
#include "../../Compress/CopyCoder.h"
|
|
25
21
|
|
|
@@ -36,7 +32,7 @@
|
|
|
36
32
|
static const char * const kUpdateIsNotSupoorted =
|
|
37
33
|
"update operations are not supported for this archive";
|
|
38
34
|
|
|
39
|
-
static const char * const
|
|
35
|
+
static const char * const kUpdateIsNotSupoorted_MultiVol =
|
|
40
36
|
"Updating for multivolume archives is not implemented";
|
|
41
37
|
|
|
42
38
|
using namespace NWindows;
|
|
@@ -45,9 +41,8 @@ using namespace NFile;
|
|
|
45
41
|
using namespace NDir;
|
|
46
42
|
using namespace NName;
|
|
47
43
|
|
|
48
|
-
#ifdef _WIN32
|
|
49
44
|
static CFSTR const kTempFolderPrefix = FTEXT("7zE");
|
|
50
|
-
|
|
45
|
+
|
|
51
46
|
|
|
52
47
|
void CUpdateErrorInfo::SetFromLastError(const char *message)
|
|
53
48
|
{
|
|
@@ -62,55 +57,228 @@ HRESULT CUpdateErrorInfo::SetFromLastError(const char *message, const FString &f
|
|
|
62
57
|
return Get_HRESULT_Error();
|
|
63
58
|
}
|
|
64
59
|
|
|
65
|
-
|
|
60
|
+
static bool DeleteEmptyFolderAndEmptySubFolders(const FString &path)
|
|
66
61
|
{
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
62
|
+
NFind::CFileInfo fileInfo;
|
|
63
|
+
FString pathPrefix = path + FCHAR_PATH_SEPARATOR;
|
|
64
|
+
{
|
|
65
|
+
NFind::CEnumerator enumerator;
|
|
66
|
+
enumerator.SetDirPrefix(pathPrefix);
|
|
67
|
+
while (enumerator.Next(fileInfo))
|
|
68
|
+
{
|
|
69
|
+
if (fileInfo.IsDir())
|
|
70
|
+
if (!DeleteEmptyFolderAndEmptySubFolders(pathPrefix + fileInfo.Name))
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
/*
|
|
75
|
+
// we don't need clear read-only for folders
|
|
76
|
+
if (!MySetFileAttributes(path, 0))
|
|
77
|
+
return false;
|
|
78
|
+
*/
|
|
79
|
+
return RemoveDir(path);
|
|
71
80
|
}
|
|
72
81
|
|
|
73
82
|
|
|
74
83
|
using namespace NUpdateArchive;
|
|
75
84
|
|
|
76
|
-
|
|
85
|
+
class COutMultiVolStream:
|
|
86
|
+
public IOutStream,
|
|
87
|
+
public CMyUnknownImp
|
|
77
88
|
{
|
|
78
|
-
|
|
79
|
-
|
|
89
|
+
unsigned _streamIndex; // required stream
|
|
90
|
+
UInt64 _offsetPos; // offset from start of _streamIndex index
|
|
91
|
+
UInt64 _absPos;
|
|
92
|
+
UInt64 _length;
|
|
93
|
+
|
|
94
|
+
struct CAltStreamInfo
|
|
95
|
+
{
|
|
96
|
+
COutFileStream *StreamSpec;
|
|
97
|
+
CMyComPtr<IOutStream> Stream;
|
|
98
|
+
FString Name;
|
|
99
|
+
UInt64 Pos;
|
|
100
|
+
UInt64 RealSize;
|
|
101
|
+
};
|
|
102
|
+
CObjectVector<CAltStreamInfo> Streams;
|
|
103
|
+
public:
|
|
104
|
+
// CMyComPtr<IArchiveUpdateCallback2> VolumeCallback;
|
|
105
|
+
CRecordVector<UInt64> Sizes;
|
|
106
|
+
FString Prefix;
|
|
107
|
+
CTempFiles *TempFiles;
|
|
108
|
+
|
|
109
|
+
void Init()
|
|
110
|
+
{
|
|
111
|
+
_streamIndex = 0;
|
|
112
|
+
_offsetPos = 0;
|
|
113
|
+
_absPos = 0;
|
|
114
|
+
_length = 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
bool SetMTime(const FILETIME *mTime);
|
|
118
|
+
HRESULT Close();
|
|
119
|
+
|
|
120
|
+
UInt64 GetSize() const { return _length; }
|
|
121
|
+
|
|
122
|
+
MY_UNKNOWN_IMP1(IOutStream)
|
|
123
|
+
|
|
124
|
+
STDMETHOD(Write)(const void *data, UInt32 size, UInt32 *processedSize);
|
|
125
|
+
STDMETHOD(Seek)(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition);
|
|
126
|
+
STDMETHOD(SetSize)(UInt64 newSize);
|
|
80
127
|
};
|
|
81
128
|
|
|
82
|
-
|
|
129
|
+
// static NSynchronization::CCriticalSection g_TempPathsCS;
|
|
130
|
+
|
|
131
|
+
HRESULT COutMultiVolStream::Close()
|
|
83
132
|
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
133
|
+
HRESULT res = S_OK;
|
|
134
|
+
FOR_VECTOR (i, Streams)
|
|
135
|
+
{
|
|
136
|
+
COutFileStream *s = Streams[i].StreamSpec;
|
|
137
|
+
if (s)
|
|
138
|
+
{
|
|
139
|
+
HRESULT res2 = s->Close();
|
|
140
|
+
if (res2 != S_OK)
|
|
141
|
+
res = res2;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return res;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
bool COutMultiVolStream::SetMTime(const FILETIME *mTime)
|
|
148
|
+
{
|
|
149
|
+
bool res = true;
|
|
150
|
+
FOR_VECTOR (i, Streams)
|
|
151
|
+
{
|
|
152
|
+
COutFileStream *s = Streams[i].StreamSpec;
|
|
153
|
+
if (s)
|
|
154
|
+
if (!s->SetMTime(mTime))
|
|
155
|
+
res = false;
|
|
156
|
+
}
|
|
157
|
+
return res;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
STDMETHODIMP COutMultiVolStream::Write(const void *data, UInt32 size, UInt32 *processedSize)
|
|
161
|
+
{
|
|
162
|
+
if (processedSize)
|
|
163
|
+
*processedSize = 0;
|
|
164
|
+
while (size > 0)
|
|
87
165
|
{
|
|
88
|
-
|
|
89
|
-
FOR_VECTOR (i, Items)
|
|
166
|
+
if (_streamIndex >= Streams.Size())
|
|
90
167
|
{
|
|
91
|
-
|
|
92
|
-
|
|
168
|
+
CAltStreamInfo altStream;
|
|
169
|
+
|
|
170
|
+
FString name;
|
|
171
|
+
name.Add_UInt32(_streamIndex + 1);
|
|
172
|
+
while (name.Len() < 3)
|
|
173
|
+
name.InsertAtFront(FTEXT('0'));
|
|
174
|
+
name.Insert(0, Prefix);
|
|
175
|
+
altStream.StreamSpec = new COutFileStream;
|
|
176
|
+
altStream.Stream = altStream.StreamSpec;
|
|
177
|
+
if (!altStream.StreamSpec->Create(name, false))
|
|
178
|
+
return ::GetLastError();
|
|
93
179
|
{
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
hres = hres2;
|
|
180
|
+
// NSynchronization::CCriticalSectionLock lock(g_TempPathsCS);
|
|
181
|
+
TempFiles->Paths.Add(name);
|
|
97
182
|
}
|
|
183
|
+
|
|
184
|
+
altStream.Pos = 0;
|
|
185
|
+
altStream.RealSize = 0;
|
|
186
|
+
altStream.Name = name;
|
|
187
|
+
Streams.Add(altStream);
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
CAltStreamInfo &altStream = Streams[_streamIndex];
|
|
191
|
+
|
|
192
|
+
unsigned index = _streamIndex;
|
|
193
|
+
if (index >= Sizes.Size())
|
|
194
|
+
index = Sizes.Size() - 1;
|
|
195
|
+
UInt64 volSize = Sizes[index];
|
|
196
|
+
|
|
197
|
+
if (_offsetPos >= volSize)
|
|
198
|
+
{
|
|
199
|
+
_offsetPos -= volSize;
|
|
200
|
+
_streamIndex++;
|
|
201
|
+
continue;
|
|
98
202
|
}
|
|
99
|
-
|
|
100
|
-
|
|
203
|
+
if (_offsetPos != altStream.Pos)
|
|
204
|
+
{
|
|
205
|
+
// CMyComPtr<IOutStream> outStream;
|
|
206
|
+
// RINOK(altStream.Stream.QueryInterface(IID_IOutStream, &outStream));
|
|
207
|
+
RINOK(altStream.Stream->Seek(_offsetPos, STREAM_SEEK_SET, NULL));
|
|
208
|
+
altStream.Pos = _offsetPos;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
UInt32 curSize = (UInt32)MyMin((UInt64)size, volSize - altStream.Pos);
|
|
212
|
+
UInt32 realProcessed;
|
|
213
|
+
RINOK(altStream.Stream->Write(data, curSize, &realProcessed));
|
|
214
|
+
data = (void *)((Byte *)data + realProcessed);
|
|
215
|
+
size -= realProcessed;
|
|
216
|
+
altStream.Pos += realProcessed;
|
|
217
|
+
_offsetPos += realProcessed;
|
|
218
|
+
_absPos += realProcessed;
|
|
219
|
+
if (_absPos > _length)
|
|
220
|
+
_length = _absPos;
|
|
221
|
+
if (_offsetPos > altStream.RealSize)
|
|
222
|
+
altStream.RealSize = _offsetPos;
|
|
223
|
+
if (processedSize)
|
|
224
|
+
*processedSize += realProcessed;
|
|
225
|
+
if (altStream.Pos == volSize)
|
|
226
|
+
{
|
|
227
|
+
_streamIndex++;
|
|
228
|
+
_offsetPos = 0;
|
|
229
|
+
}
|
|
230
|
+
if (realProcessed == 0 && curSize != 0)
|
|
231
|
+
return E_FAIL;
|
|
232
|
+
break;
|
|
101
233
|
}
|
|
234
|
+
return S_OK;
|
|
235
|
+
}
|
|
102
236
|
|
|
103
|
-
|
|
237
|
+
STDMETHODIMP COutMultiVolStream::Seek(Int64 offset, UInt32 seekOrigin, UInt64 *newPosition)
|
|
238
|
+
{
|
|
239
|
+
if (seekOrigin >= 3)
|
|
240
|
+
return STG_E_INVALIDFUNCTION;
|
|
241
|
+
switch (seekOrigin)
|
|
242
|
+
{
|
|
243
|
+
case STREAM_SEEK_SET: _absPos = offset; break;
|
|
244
|
+
case STREAM_SEEK_CUR: _absPos += offset; break;
|
|
245
|
+
case STREAM_SEEK_END: _absPos = _length + offset; break;
|
|
246
|
+
}
|
|
247
|
+
_offsetPos = _absPos;
|
|
248
|
+
if (newPosition)
|
|
249
|
+
*newPosition = _absPos;
|
|
250
|
+
_streamIndex = 0;
|
|
251
|
+
return S_OK;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
STDMETHODIMP COutMultiVolStream::SetSize(UInt64 newSize)
|
|
255
|
+
{
|
|
256
|
+
unsigned i = 0;
|
|
257
|
+
while (i < Streams.Size())
|
|
104
258
|
{
|
|
105
|
-
|
|
259
|
+
CAltStreamInfo &altStream = Streams[i++];
|
|
260
|
+
if ((UInt64)newSize < altStream.RealSize)
|
|
106
261
|
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
262
|
+
RINOK(altStream.Stream->SetSize(newSize));
|
|
263
|
+
altStream.RealSize = newSize;
|
|
264
|
+
break;
|
|
110
265
|
}
|
|
266
|
+
newSize -= altStream.RealSize;
|
|
111
267
|
}
|
|
112
|
-
|
|
113
|
-
|
|
268
|
+
while (i < Streams.Size())
|
|
269
|
+
{
|
|
270
|
+
{
|
|
271
|
+
CAltStreamInfo &altStream = Streams.Back();
|
|
272
|
+
altStream.Stream.Release();
|
|
273
|
+
DeleteFileAlways(altStream.Name);
|
|
274
|
+
}
|
|
275
|
+
Streams.DeleteBack();
|
|
276
|
+
}
|
|
277
|
+
_offsetPos = _absPos;
|
|
278
|
+
_streamIndex = 0;
|
|
279
|
+
_length = newSize;
|
|
280
|
+
return S_OK;
|
|
281
|
+
}
|
|
114
282
|
|
|
115
283
|
void CArchivePath::ParseFromPath(const UString &path, EArcNameMode mode)
|
|
116
284
|
{
|
|
@@ -130,11 +298,11 @@ void CArchivePath::ParseFromPath(const UString &path, EArcNameMode mode)
|
|
|
130
298
|
Name.DeleteBack();
|
|
131
299
|
else
|
|
132
300
|
{
|
|
133
|
-
const UString ext = Name.Ptr(
|
|
301
|
+
const UString ext = Name.Ptr(dotPos + 1);
|
|
134
302
|
if (BaseExtension.IsEqualTo_NoCase(ext))
|
|
135
303
|
{
|
|
136
304
|
BaseExtension = ext;
|
|
137
|
-
Name.DeleteFrom(
|
|
305
|
+
Name.DeleteFrom(dotPos);
|
|
138
306
|
return;
|
|
139
307
|
}
|
|
140
308
|
}
|
|
@@ -148,7 +316,7 @@ UString CArchivePath::GetFinalPath() const
|
|
|
148
316
|
UString path = GetPathWithoutExt();
|
|
149
317
|
if (!BaseExtension.IsEmpty())
|
|
150
318
|
{
|
|
151
|
-
path.
|
|
319
|
+
path += '.';
|
|
152
320
|
path += BaseExtension;
|
|
153
321
|
}
|
|
154
322
|
return path;
|
|
@@ -160,7 +328,7 @@ UString CArchivePath::GetFinalVolPath() const
|
|
|
160
328
|
// if BaseExtension is empty, we must ignore VolExtension also.
|
|
161
329
|
if (!BaseExtension.IsEmpty())
|
|
162
330
|
{
|
|
163
|
-
path.
|
|
331
|
+
path += '.';
|
|
164
332
|
path += VolExtension;
|
|
165
333
|
}
|
|
166
334
|
return path;
|
|
@@ -172,7 +340,7 @@ FString CArchivePath::GetTempPath() const
|
|
|
172
340
|
path += us2fs(Name);
|
|
173
341
|
if (!BaseExtension.IsEmpty())
|
|
174
342
|
{
|
|
175
|
-
path.
|
|
343
|
+
path += '.';
|
|
176
344
|
path += us2fs(BaseExtension);
|
|
177
345
|
}
|
|
178
346
|
path += ".tmp";
|
|
@@ -224,7 +392,7 @@ bool CUpdateOptions::SetArcPath(const CCodecs *codecs, const UString &arcPath)
|
|
|
224
392
|
}
|
|
225
393
|
else
|
|
226
394
|
{
|
|
227
|
-
const CArcInfoEx &arcInfo = codecs->Formats[
|
|
395
|
+
const CArcInfoEx &arcInfo = codecs->Formats[formatIndex];
|
|
228
396
|
if (!arcInfo.UpdateEnabled)
|
|
229
397
|
return false;
|
|
230
398
|
typeExt = arcInfo.GetMainExt();
|
|
@@ -246,11 +414,11 @@ bool CUpdateOptions::SetArcPath(const CCodecs *codecs, const UString &arcPath)
|
|
|
246
414
|
}
|
|
247
415
|
|
|
248
416
|
|
|
249
|
-
struct CUpdateProduceCallbackImp
|
|
417
|
+
struct CUpdateProduceCallbackImp: public IUpdateProduceCallback
|
|
250
418
|
{
|
|
251
419
|
const CObjectVector<CArcItem> *_arcItems;
|
|
252
|
-
CDirItemsStat *_stat;
|
|
253
420
|
IUpdateCallbackUI *_callback;
|
|
421
|
+
CDirItemsStat *_stat;
|
|
254
422
|
|
|
255
423
|
CUpdateProduceCallbackImp(
|
|
256
424
|
const CObjectVector<CArcItem> *a,
|
|
@@ -260,7 +428,7 @@ struct CUpdateProduceCallbackImp Z7_final: public IUpdateProduceCallback
|
|
|
260
428
|
_stat(stat),
|
|
261
429
|
_callback(callback) {}
|
|
262
430
|
|
|
263
|
-
virtual HRESULT ShowDeleteFile(unsigned arcIndex)
|
|
431
|
+
virtual HRESULT ShowDeleteFile(unsigned arcIndex);
|
|
264
432
|
};
|
|
265
433
|
|
|
266
434
|
|
|
@@ -342,8 +510,6 @@ bool CRenamePair::GetNewPath(bool isFolder, const UString &src, UString &dest) c
|
|
|
342
510
|
int FindAltStreamColon_in_Path(const wchar_t *path);
|
|
343
511
|
#endif
|
|
344
512
|
|
|
345
|
-
|
|
346
|
-
|
|
347
513
|
static HRESULT Compress(
|
|
348
514
|
const CUpdateOptions &options,
|
|
349
515
|
bool isUpdatingItself,
|
|
@@ -356,7 +522,6 @@ static HRESULT Compress(
|
|
|
356
522
|
const CDirItems &dirItems,
|
|
357
523
|
const CDirItem *parentDirItem,
|
|
358
524
|
CTempFiles &tempFiles,
|
|
359
|
-
CMultiOutStream_Bunch &multiStreams,
|
|
360
525
|
CUpdateErrorInfo &errorInfo,
|
|
361
526
|
IUpdateCallbackUI *callback,
|
|
362
527
|
CFinishArchiveStat &st)
|
|
@@ -376,63 +541,28 @@ static HRESULT Compress(
|
|
|
376
541
|
}
|
|
377
542
|
else
|
|
378
543
|
{
|
|
379
|
-
RINOK(codecs->CreateOutArchive(
|
|
544
|
+
RINOK(codecs->CreateOutArchive(formatIndex, outArchive));
|
|
380
545
|
|
|
381
|
-
#ifdef
|
|
546
|
+
#ifdef EXTERNAL_CODECS
|
|
382
547
|
{
|
|
383
548
|
CMyComPtr<ISetCompressCodecsInfo> setCompressCodecsInfo;
|
|
384
549
|
outArchive.QueryInterface(IID_ISetCompressCodecsInfo, (void **)&setCompressCodecsInfo);
|
|
385
550
|
if (setCompressCodecsInfo)
|
|
386
551
|
{
|
|
387
|
-
RINOK(setCompressCodecsInfo->SetCompressCodecsInfo(codecs))
|
|
552
|
+
RINOK(setCompressCodecsInfo->SetCompressCodecsInfo(codecs));
|
|
388
553
|
}
|
|
389
554
|
}
|
|
390
555
|
#endif
|
|
391
556
|
}
|
|
392
557
|
|
|
393
|
-
if (
|
|
558
|
+
if (outArchive == 0)
|
|
394
559
|
throw kUpdateIsNotSupoorted;
|
|
395
|
-
|
|
396
|
-
// we need to set properties to get fileTimeType.
|
|
397
|
-
RINOK(SetProperties(outArchive, options.MethodMode.Properties))
|
|
398
|
-
|
|
560
|
+
|
|
399
561
|
NFileTimeType::EEnum fileTimeType;
|
|
400
562
|
{
|
|
401
|
-
/*
|
|
402
|
-
how we compare file_in_archive::MTime with dirItem.MTime
|
|
403
|
-
for GetUpdatePairInfoList():
|
|
404
|
-
|
|
405
|
-
if (kpidMTime is not defined), external MTime of archive is used.
|
|
406
|
-
|
|
407
|
-
before 22.00:
|
|
408
|
-
if (kpidTimeType is defined)
|
|
409
|
-
{
|
|
410
|
-
kpidTimeType is used as precision.
|
|
411
|
-
(kpidTimeType > kDOS) is not allowed.
|
|
412
|
-
}
|
|
413
|
-
else GetFileTimeType() value is used as precision.
|
|
414
|
-
|
|
415
|
-
22.00:
|
|
416
|
-
if (kpidMTime is defined)
|
|
417
|
-
{
|
|
418
|
-
if (kpidMTime::precision != 0), then kpidMTime::precision is used as precision.
|
|
419
|
-
else
|
|
420
|
-
{
|
|
421
|
-
if (kpidTimeType is defined), kpidTimeType is used as precision.
|
|
422
|
-
else GetFileTimeType() value is used as precision.
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
else external MTime of archive is used as precision.
|
|
426
|
-
*/
|
|
427
|
-
|
|
428
563
|
UInt32 value;
|
|
429
|
-
RINOK(outArchive->GetFileTimeType(&value))
|
|
430
|
-
|
|
431
|
-
// we support any future fileType here.
|
|
432
|
-
fileTimeType = (NFileTimeType::EEnum)value;
|
|
564
|
+
RINOK(outArchive->GetFileTimeType(&value));
|
|
433
565
|
|
|
434
|
-
/*
|
|
435
|
-
old 21.07 code:
|
|
436
566
|
switch (value)
|
|
437
567
|
{
|
|
438
568
|
case NFileTimeType::kWindows:
|
|
@@ -443,28 +573,13 @@ static HRESULT Compress(
|
|
|
443
573
|
default:
|
|
444
574
|
return E_FAIL;
|
|
445
575
|
}
|
|
446
|
-
*/
|
|
447
576
|
}
|
|
448
577
|
|
|
449
|
-
// bool noTimestampExpected = false;
|
|
450
578
|
{
|
|
451
|
-
const CArcInfoEx &arcInfo = codecs->Formats[
|
|
452
|
-
|
|
453
|
-
// if (arcInfo.Flags_KeepName()) noTimestampExpected = true;
|
|
454
|
-
if (arcInfo.Is_Xz() ||
|
|
455
|
-
arcInfo.Is_BZip2())
|
|
456
|
-
{
|
|
457
|
-
/* 7-zip before 22.00 returns NFileTimeType::kUnix for xz and bzip2,
|
|
458
|
-
but we want to set timestamp without reduction to unix. */
|
|
459
|
-
// noTimestampExpected = true;
|
|
460
|
-
fileTimeType = NFileTimeType::kNotDefined; // it means not defined
|
|
461
|
-
}
|
|
462
|
-
|
|
579
|
+
const CArcInfoEx &arcInfo = codecs->Formats[formatIndex];
|
|
463
580
|
if (options.AltStreams.Val && !arcInfo.Flags_AltStreams())
|
|
464
581
|
return E_NOTIMPL;
|
|
465
|
-
if (options.NtSecurity.Val && !arcInfo.
|
|
466
|
-
return E_NOTIMPL;
|
|
467
|
-
if (options.DeleteAfterCompressing && arcInfo.Flags_HashHandler())
|
|
582
|
+
if (options.NtSecurity.Val && !arcInfo.Flags_NtSecure())
|
|
468
583
|
return E_NOTIMPL;
|
|
469
584
|
}
|
|
470
585
|
|
|
@@ -474,7 +589,7 @@ static HRESULT Compress(
|
|
|
474
589
|
|
|
475
590
|
CArcToDoStat stat2;
|
|
476
591
|
|
|
477
|
-
if (options.
|
|
592
|
+
if (options.RenamePairs.Size() != 0)
|
|
478
593
|
{
|
|
479
594
|
FOR_VECTOR (i, arcItems)
|
|
480
595
|
{
|
|
@@ -499,7 +614,7 @@ static HRESULT Compress(
|
|
|
499
614
|
int colonPos = FindAltStreamColon_in_Path(ai.Name);
|
|
500
615
|
if (colonPos >= 0)
|
|
501
616
|
{
|
|
502
|
-
UString mainName = ai.Name.Left(
|
|
617
|
+
UString mainName = ai.Name.Left(colonPos);
|
|
503
618
|
/*
|
|
504
619
|
actually we must improve that code to support cases
|
|
505
620
|
with folder renaming like: rn arc dir1\ dir2\
|
|
@@ -507,8 +622,8 @@ static HRESULT Compress(
|
|
|
507
622
|
if (rp.GetNewPath(false, mainName, dest))
|
|
508
623
|
{
|
|
509
624
|
needRename = true;
|
|
510
|
-
dest
|
|
511
|
-
dest += ai.Name.Ptr(
|
|
625
|
+
dest += ':';
|
|
626
|
+
dest += ai.Name.Ptr(colonPos + 1);
|
|
512
627
|
break;
|
|
513
628
|
}
|
|
514
629
|
}
|
|
@@ -522,8 +637,8 @@ static HRESULT Compress(
|
|
|
522
637
|
if (needRename)
|
|
523
638
|
{
|
|
524
639
|
up2.NewProps = true;
|
|
525
|
-
RINOK(arc->
|
|
526
|
-
up2.NewNameIndex =
|
|
640
|
+
RINOK(arc->IsItemAnti(i, up2.IsAnti));
|
|
641
|
+
up2.NewNameIndex = newNames.Add(dest);
|
|
527
642
|
}
|
|
528
643
|
updatePairs2.Add(up2);
|
|
529
644
|
}
|
|
@@ -549,7 +664,7 @@ static HRESULT Compress(
|
|
|
549
664
|
if (up.ExistOnDisk())
|
|
550
665
|
{
|
|
551
666
|
CDirItemsStat2 &stat = stat2.NewData;
|
|
552
|
-
const CDirItem &di = dirItems.Items[
|
|
667
|
+
const CDirItem &di = dirItems.Items[up.DirIndex];
|
|
553
668
|
if (di.IsDir())
|
|
554
669
|
{
|
|
555
670
|
if (up.IsAnti)
|
|
@@ -557,7 +672,6 @@ static HRESULT Compress(
|
|
|
557
672
|
else
|
|
558
673
|
stat.NumDirs++;
|
|
559
674
|
}
|
|
560
|
-
#ifdef _WIN32
|
|
561
675
|
else if (di.IsAltStream)
|
|
562
676
|
{
|
|
563
677
|
if (up.IsAnti)
|
|
@@ -568,7 +682,6 @@ static HRESULT Compress(
|
|
|
568
682
|
stat.AltStreamsSize += di.Size;
|
|
569
683
|
}
|
|
570
684
|
}
|
|
571
|
-
#endif
|
|
572
685
|
else
|
|
573
686
|
{
|
|
574
687
|
if (up.IsAnti)
|
|
@@ -584,7 +697,7 @@ static HRESULT Compress(
|
|
|
584
697
|
else if (up.ArcIndex >= 0)
|
|
585
698
|
{
|
|
586
699
|
CDirItemsStat2 &stat = *(up.NewData ? &stat2.NewData : &stat2.OldData);
|
|
587
|
-
const CArcItem &ai = arcItems[
|
|
700
|
+
const CArcItem &ai = arcItems[up.ArcIndex];
|
|
588
701
|
if (ai.IsDir)
|
|
589
702
|
{
|
|
590
703
|
if (up.IsAnti)
|
|
@@ -614,13 +727,12 @@ static HRESULT Compress(
|
|
|
614
727
|
}
|
|
615
728
|
}
|
|
616
729
|
}
|
|
617
|
-
RINOK(callback->SetNumItems(stat2))
|
|
730
|
+
RINOK(callback->SetNumItems(stat2));
|
|
618
731
|
}
|
|
619
732
|
|
|
620
733
|
CArchiveUpdateCallback *updateCallbackSpec = new CArchiveUpdateCallback;
|
|
621
734
|
CMyComPtr<IArchiveUpdateCallback> updateCallback(updateCallbackSpec);
|
|
622
735
|
|
|
623
|
-
updateCallbackSpec->PreserveATime = options.PreserveATime;
|
|
624
736
|
updateCallbackSpec->ShareForWrite = options.OpenShareForWrite;
|
|
625
737
|
updateCallbackSpec->StopAfterOpenError = options.StopAfterOpenError;
|
|
626
738
|
updateCallbackSpec->StdInMode = options.StdInMode;
|
|
@@ -638,8 +750,6 @@ static HRESULT Compress(
|
|
|
638
750
|
updateCallbackSpec->StoreNtSecurity = options.NtSecurity.Val;
|
|
639
751
|
updateCallbackSpec->StoreHardLinks = options.HardLinks.Val;
|
|
640
752
|
updateCallbackSpec->StoreSymLinks = options.SymLinks.Val;
|
|
641
|
-
updateCallbackSpec->StoreOwnerName = options.StoreOwnerName.Val;
|
|
642
|
-
updateCallbackSpec->StoreOwnerId = options.StoreOwnerId.Val;
|
|
643
753
|
|
|
644
754
|
updateCallbackSpec->Arc = arc;
|
|
645
755
|
updateCallbackSpec->ArcItems = &arcItems;
|
|
@@ -647,20 +757,9 @@ static HRESULT Compress(
|
|
|
647
757
|
|
|
648
758
|
updateCallbackSpec->ProcessedItemsStatuses = processedItemsStatuses;
|
|
649
759
|
|
|
650
|
-
{
|
|
651
|
-
const UString arcPath = archivePath.GetFinalPath();
|
|
652
|
-
updateCallbackSpec->ArcFileName = ExtractFileNameFromPath(arcPath);
|
|
653
|
-
}
|
|
654
|
-
|
|
655
760
|
if (options.RenamePairs.Size() != 0)
|
|
656
761
|
updateCallbackSpec->NewNames = &newNames;
|
|
657
762
|
|
|
658
|
-
if (options.SetArcMTime)
|
|
659
|
-
{
|
|
660
|
-
// updateCallbackSpec->Need_ArcMTime_Report = true;
|
|
661
|
-
updateCallbackSpec->Need_LatestMTime = true;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
763
|
CMyComPtr<IOutStream> outSeekStream;
|
|
665
764
|
CMyComPtr<ISequentialOutStream> outStream;
|
|
666
765
|
|
|
@@ -674,7 +773,7 @@ static HRESULT Compress(
|
|
|
674
773
|
|
|
675
774
|
COutFileStream *outStreamSpec = NULL;
|
|
676
775
|
CStdOutFileStream *stdOutFileStreamSpec = NULL;
|
|
677
|
-
|
|
776
|
+
COutMultiVolStream *volStreamSpec = NULL;
|
|
678
777
|
|
|
679
778
|
if (options.VolumesSizes.Size() == 0)
|
|
680
779
|
{
|
|
@@ -704,7 +803,7 @@ static HRESULT Compress(
|
|
|
704
803
|
}
|
|
705
804
|
else
|
|
706
805
|
realPath = us2fs(archivePath.GetFinalPath());
|
|
707
|
-
if (outStreamSpec->
|
|
806
|
+
if (outStreamSpec->Create(realPath, false))
|
|
708
807
|
{
|
|
709
808
|
tempFiles.Paths.Add(realPath);
|
|
710
809
|
isOK = true;
|
|
@@ -727,17 +826,14 @@ static HRESULT Compress(
|
|
|
727
826
|
if (arc && arc->GetGlobalOffset() > 0)
|
|
728
827
|
return E_NOTIMPL;
|
|
729
828
|
|
|
730
|
-
volStreamSpec = new
|
|
829
|
+
volStreamSpec = new COutMultiVolStream;
|
|
731
830
|
outSeekStream = volStreamSpec;
|
|
732
831
|
outStream = outSeekStream;
|
|
832
|
+
volStreamSpec->Sizes = options.VolumesSizes;
|
|
733
833
|
volStreamSpec->Prefix = us2fs(archivePath.GetFinalVolPath());
|
|
734
|
-
volStreamSpec->Prefix.
|
|
735
|
-
volStreamSpec->
|
|
736
|
-
|
|
737
|
-
CMultiOutStream_Rec &rec = multiStreams.Items.AddNew();
|
|
738
|
-
rec.Spec = volStreamSpec;
|
|
739
|
-
rec.Ref = rec.Spec;
|
|
740
|
-
}
|
|
834
|
+
volStreamSpec->Prefix += '.';
|
|
835
|
+
volStreamSpec->TempFiles = &tempFiles;
|
|
836
|
+
volStreamSpec->Init();
|
|
741
837
|
|
|
742
838
|
/*
|
|
743
839
|
updateCallbackSpec->VolumesSizes = volumesSizes;
|
|
@@ -747,6 +843,8 @@ static HRESULT Compress(
|
|
|
747
843
|
*/
|
|
748
844
|
}
|
|
749
845
|
|
|
846
|
+
RINOK(SetProperties(outArchive, options.MethodMode.Properties));
|
|
847
|
+
|
|
750
848
|
if (options.SfxMode)
|
|
751
849
|
{
|
|
752
850
|
CInFileStream *sfxStreamSpec = new CInFileStream;
|
|
@@ -762,22 +860,22 @@ static HRESULT Compress(
|
|
|
762
860
|
{
|
|
763
861
|
outStreamSpec2 = new COutFileStream;
|
|
764
862
|
sfxOutStream = outStreamSpec2;
|
|
765
|
-
|
|
766
|
-
if (!outStreamSpec2->
|
|
863
|
+
FString realPath = us2fs(archivePath.GetFinalPath());
|
|
864
|
+
if (!outStreamSpec2->Create(realPath, false))
|
|
767
865
|
return errorInfo.SetFromLastError("cannot open file", realPath);
|
|
768
866
|
}
|
|
769
867
|
|
|
770
868
|
{
|
|
771
869
|
UInt64 sfxSize;
|
|
772
|
-
RINOK(sfxStreamSpec->GetSize(&sfxSize))
|
|
773
|
-
RINOK(callback->WriteSfx(fs2us(options.SfxModule), sfxSize))
|
|
870
|
+
RINOK(sfxStreamSpec->GetSize(&sfxSize));
|
|
871
|
+
RINOK(callback->WriteSfx(fs2us(options.SfxModule), sfxSize));
|
|
774
872
|
}
|
|
775
873
|
|
|
776
|
-
RINOK(NCompress::CopyStream(sfxStream, sfxOutStream, NULL))
|
|
874
|
+
RINOK(NCompress::CopyStream(sfxStream, sfxOutStream, NULL));
|
|
777
875
|
|
|
778
876
|
if (outStreamSpec2)
|
|
779
877
|
{
|
|
780
|
-
RINOK(outStreamSpec2->Close())
|
|
878
|
+
RINOK(outStreamSpec2->Close());
|
|
781
879
|
}
|
|
782
880
|
}
|
|
783
881
|
|
|
@@ -788,8 +886,8 @@ static HRESULT Compress(
|
|
|
788
886
|
else
|
|
789
887
|
{
|
|
790
888
|
// Int64 globalOffset = arc->GetGlobalOffset();
|
|
791
|
-
RINOK(
|
|
792
|
-
RINOK(NCompress::CopyStream_ExactSize(arc->InStream, outStream, arc->ArcStreamOffset, NULL))
|
|
889
|
+
RINOK(arc->InStream->Seek(0, STREAM_SEEK_SET, NULL));
|
|
890
|
+
RINOK(NCompress::CopyStream_ExactSize(arc->InStream, outStream, arc->ArcStreamOffset, NULL));
|
|
793
891
|
if (options.StdOutMode)
|
|
794
892
|
tailStream = outStream;
|
|
795
893
|
else
|
|
@@ -802,104 +900,43 @@ static HRESULT Compress(
|
|
|
802
900
|
}
|
|
803
901
|
}
|
|
804
902
|
|
|
805
|
-
CFiTime ft;
|
|
806
|
-
FiTime_Clear(ft);
|
|
807
|
-
bool ft_Defined = false;
|
|
808
|
-
{
|
|
809
|
-
FOR_VECTOR (i, updatePairs2)
|
|
810
|
-
{
|
|
811
|
-
const CUpdatePair2 &pair2 = updatePairs2[i];
|
|
812
|
-
CFiTime ft2;
|
|
813
|
-
FiTime_Clear(ft2);
|
|
814
|
-
bool ft2_Defined = false;
|
|
815
|
-
/* we use full precision of dirItem, if dirItem is defined
|
|
816
|
-
and (dirItem will be used or dirItem is sameTime in dir and arc */
|
|
817
|
-
if (pair2.DirIndex >= 0 &&
|
|
818
|
-
(pair2.NewProps || pair2.IsSameTime))
|
|
819
|
-
{
|
|
820
|
-
ft2 = dirItems.Items[(unsigned)pair2.DirIndex].MTime;
|
|
821
|
-
ft2_Defined = true;
|
|
822
|
-
}
|
|
823
|
-
else if (pair2.UseArcProps && pair2.ArcIndex >= 0)
|
|
824
|
-
{
|
|
825
|
-
const CArcItem &arcItem = arcItems[(unsigned)pair2.ArcIndex];
|
|
826
|
-
if (arcItem.MTime.Def)
|
|
827
|
-
{
|
|
828
|
-
arcItem.MTime.Write_To_FiTime(ft2);
|
|
829
|
-
ft2_Defined = true;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
if (ft2_Defined)
|
|
833
|
-
{
|
|
834
|
-
if (!ft_Defined || Compare_FiTime(&ft, &ft2) < 0)
|
|
835
|
-
{
|
|
836
|
-
ft = ft2;
|
|
837
|
-
ft_Defined = true;
|
|
838
|
-
}
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
/*
|
|
842
|
-
if (fileTimeType != NFileTimeType::kNotDefined)
|
|
843
|
-
FiTime_Normalize_With_Prec(ft, fileTimeType);
|
|
844
|
-
*/
|
|
845
|
-
}
|
|
846
|
-
|
|
847
|
-
if (volStreamSpec && options.SetArcMTime && ft_Defined)
|
|
848
|
-
{
|
|
849
|
-
volStreamSpec->MTime = ft;
|
|
850
|
-
volStreamSpec->MTime_Defined = true;
|
|
851
|
-
}
|
|
852
903
|
|
|
853
904
|
HRESULT result = outArchive->UpdateItems(tailStream, updatePairs2.Size(), updateCallback);
|
|
854
905
|
// callback->Finalize();
|
|
855
|
-
RINOK(result)
|
|
906
|
+
RINOK(result);
|
|
856
907
|
|
|
857
908
|
if (!updateCallbackSpec->AreAllFilesClosed())
|
|
858
909
|
{
|
|
859
|
-
errorInfo.Message = "There are unclosed input
|
|
910
|
+
errorInfo.Message = "There are unclosed input file:";
|
|
860
911
|
errorInfo.FileNames = updateCallbackSpec->_openFiles_Paths;
|
|
861
912
|
return E_FAIL;
|
|
862
913
|
}
|
|
863
914
|
|
|
864
915
|
if (options.SetArcMTime)
|
|
865
916
|
{
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
{
|
|
871
|
-
isDefined = updateCallbackSpec->Reported_ArcMTime.Def;
|
|
872
|
-
if (isDefined)
|
|
873
|
-
updateCallbackSpec->Reported_ArcMTime.Write_To_FiTime(ft);
|
|
874
|
-
else
|
|
875
|
-
fileTimeType = NFileTimeType::kNotDefined;
|
|
876
|
-
}
|
|
877
|
-
if (!isDefined)
|
|
878
|
-
*/
|
|
917
|
+
FILETIME ft;
|
|
918
|
+
ft.dwLowDateTime = 0;
|
|
919
|
+
ft.dwHighDateTime = 0;
|
|
920
|
+
FOR_VECTOR (i, updatePairs2)
|
|
879
921
|
{
|
|
880
|
-
|
|
922
|
+
CUpdatePair2 &pair2 = updatePairs2[i];
|
|
923
|
+
const FILETIME *ft2 = NULL;
|
|
924
|
+
if (pair2.NewProps && pair2.DirIndex >= 0)
|
|
925
|
+
ft2 = &dirItems.Items[pair2.DirIndex].MTime;
|
|
926
|
+
else if (pair2.UseArcProps && pair2.ArcIndex >= 0)
|
|
927
|
+
ft2 = &arcItems[pair2.ArcIndex].MTime;
|
|
928
|
+
if (ft2)
|
|
881
929
|
{
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
// we must normalize with precision from archive;
|
|
885
|
-
if (!ft_Defined || Compare_FiTime(&ft, &updateCallbackSpec->LatestMTime) < 0)
|
|
886
|
-
ft = updateCallbackSpec->LatestMTime;
|
|
887
|
-
ft_Defined = true;
|
|
930
|
+
if (::CompareFileTime(&ft, ft2) < 0)
|
|
931
|
+
ft = *ft2;
|
|
888
932
|
}
|
|
889
|
-
/*
|
|
890
|
-
if (fileTimeType != NFileTimeType::kNotDefined)
|
|
891
|
-
FiTime_Normalize_With_Prec(ft, fileTimeType);
|
|
892
|
-
*/
|
|
893
933
|
}
|
|
894
|
-
|
|
895
|
-
if (ft_Defined)
|
|
934
|
+
if (ft.dwLowDateTime != 0 || ft.dwHighDateTime != 0)
|
|
896
935
|
{
|
|
897
|
-
// we ignore set time errors here.
|
|
898
|
-
// note that user could move some finished volumes to another folder.
|
|
899
936
|
if (outStreamSpec)
|
|
900
937
|
outStreamSpec->SetMTime(&ft);
|
|
901
938
|
else if (volStreamSpec)
|
|
902
|
-
volStreamSpec->
|
|
939
|
+
volStreamSpec->SetMTime(&ft);;
|
|
903
940
|
}
|
|
904
941
|
}
|
|
905
942
|
|
|
@@ -919,43 +956,10 @@ static HRESULT Compress(
|
|
|
919
956
|
if (outStreamSpec)
|
|
920
957
|
result = outStreamSpec->Close();
|
|
921
958
|
else if (volStreamSpec)
|
|
922
|
-
|
|
923
|
-
result = volStreamSpec->FinalFlush_and_CloseFiles(st.NumVolumes);
|
|
924
|
-
st.IsMultiVolMode = true;
|
|
925
|
-
}
|
|
926
|
-
|
|
927
|
-
RINOK(result)
|
|
928
|
-
|
|
929
|
-
if (processedItemsStatuses)
|
|
930
|
-
{
|
|
931
|
-
FOR_VECTOR (i, updatePairs2)
|
|
932
|
-
{
|
|
933
|
-
const CUpdatePair2 &up = updatePairs2[i];
|
|
934
|
-
if (up.NewData && up.DirIndex >= 0)
|
|
935
|
-
{
|
|
936
|
-
const CDirItem &di = dirItems.Items[(unsigned)up.DirIndex];
|
|
937
|
-
if (di.AreReparseData() || (!di.IsDir() && di.Size == 0))
|
|
938
|
-
processedItemsStatuses[(unsigned)up.DirIndex] = 1;
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
|
|
959
|
+
result = volStreamSpec->Close();
|
|
943
960
|
return result;
|
|
944
961
|
}
|
|
945
962
|
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
static bool Censor_AreAllAllowed(const NWildcard::CCensor &censor)
|
|
949
|
-
{
|
|
950
|
-
if (censor.Pairs.Size() != 1)
|
|
951
|
-
return false;
|
|
952
|
-
const NWildcard::CPair &pair = censor.Pairs[0];
|
|
953
|
-
/* Censor_CheckPath() ignores (CPair::Prefix).
|
|
954
|
-
So we also ignore (CPair::Prefix) here */
|
|
955
|
-
// if (!pair.Prefix.IsEmpty()) return false;
|
|
956
|
-
return pair.Head.AreAllAllowed();
|
|
957
|
-
}
|
|
958
|
-
|
|
959
963
|
bool CensorNode_CheckPath2(const NWildcard::CCensorNode &node, const CReadArcItem &item, bool &include);
|
|
960
964
|
|
|
961
965
|
static bool Censor_CheckPath(const NWildcard::CCensor &censor, const CReadArcItem &item)
|
|
@@ -963,13 +967,9 @@ static bool Censor_CheckPath(const NWildcard::CCensor &censor, const CReadArcIte
|
|
|
963
967
|
bool finded = false;
|
|
964
968
|
FOR_VECTOR (i, censor.Pairs)
|
|
965
969
|
{
|
|
966
|
-
/* (CPair::Prefix) in not used for matching items in archive.
|
|
967
|
-
So we ignore (CPair::Prefix) here */
|
|
968
970
|
bool include;
|
|
969
971
|
if (CensorNode_CheckPath2(censor.Pairs[i].Head, item, include))
|
|
970
972
|
{
|
|
971
|
-
// Check it and FIXME !!!!
|
|
972
|
-
// here we can exclude item via some Pair, that is still allowed by another Pair
|
|
973
973
|
if (!include)
|
|
974
974
|
return false;
|
|
975
975
|
finded = true;
|
|
@@ -987,18 +987,16 @@ static HRESULT EnumerateInArchiveItems(
|
|
|
987
987
|
arcItems.Clear();
|
|
988
988
|
UInt32 numItems;
|
|
989
989
|
IInArchive *archive = arc.Archive;
|
|
990
|
-
RINOK(archive->GetNumberOfItems(&numItems))
|
|
990
|
+
RINOK(archive->GetNumberOfItems(&numItems));
|
|
991
991
|
arcItems.ClearAndReserve(numItems);
|
|
992
992
|
|
|
993
993
|
CReadArcItem item;
|
|
994
994
|
|
|
995
|
-
const bool allFilesAreAllowed = Censor_AreAllAllowed(censor);
|
|
996
|
-
|
|
997
995
|
for (UInt32 i = 0; i < numItems; i++)
|
|
998
996
|
{
|
|
999
997
|
CArcItem ai;
|
|
1000
998
|
|
|
1001
|
-
RINOK(arc.GetItem(i, item))
|
|
999
|
+
RINOK(arc.GetItem(i, item));
|
|
1002
1000
|
ai.Name = item.Path;
|
|
1003
1001
|
ai.IsDir = item.IsDir;
|
|
1004
1002
|
ai.IsAltStream =
|
|
@@ -1012,14 +1010,28 @@ static HRESULT EnumerateInArchiveItems(
|
|
|
1012
1010
|
if (!storeStreamsMode && ai.IsAltStream)
|
|
1013
1011
|
continue;
|
|
1014
1012
|
*/
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1013
|
+
ai.Censored = Censor_CheckPath(censor, item);
|
|
1014
|
+
|
|
1015
|
+
RINOK(arc.GetItemMTime(i, ai.MTime, ai.MTimeDefined));
|
|
1016
|
+
RINOK(arc.GetItemSize(i, ai.Size, ai.SizeDefined));
|
|
1019
1017
|
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1018
|
+
{
|
|
1019
|
+
CPropVariant prop;
|
|
1020
|
+
RINOK(archive->GetProperty(i, kpidTimeType, &prop));
|
|
1021
|
+
if (prop.vt == VT_UI4)
|
|
1022
|
+
{
|
|
1023
|
+
ai.TimeType = (int)(NFileTimeType::EEnum)prop.ulVal;
|
|
1024
|
+
switch (ai.TimeType)
|
|
1025
|
+
{
|
|
1026
|
+
case NFileTimeType::kWindows:
|
|
1027
|
+
case NFileTimeType::kUnix:
|
|
1028
|
+
case NFileTimeType::kDOS:
|
|
1029
|
+
break;
|
|
1030
|
+
default:
|
|
1031
|
+
return E_FAIL;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1023
1035
|
|
|
1024
1036
|
ai.IndexInServer = i;
|
|
1025
1037
|
arcItems.AddInReserved(ai);
|
|
@@ -1029,96 +1041,9 @@ static HRESULT EnumerateInArchiveItems(
|
|
|
1029
1041
|
|
|
1030
1042
|
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
1031
1043
|
|
|
1032
|
-
#if defined(__MINGW32__) || defined(__MINGW64__)
|
|
1033
1044
|
#include <mapi.h>
|
|
1034
|
-
#else
|
|
1035
|
-
#include <MAPI.h>
|
|
1036
|
-
#endif
|
|
1037
|
-
|
|
1038
|
-
extern "C" {
|
|
1039
|
-
|
|
1040
|
-
#ifdef MAPI_FORCE_UNICODE
|
|
1041
|
-
|
|
1042
|
-
#define Z7_WIN_LPMAPISENDMAILW LPMAPISENDMAILW
|
|
1043
|
-
#define Z7_WIN_MapiFileDescW MapiFileDescW
|
|
1044
|
-
#define Z7_WIN_MapiMessageW MapiMessageW
|
|
1045
|
-
#define Z7_WIN_MapiRecipDescW MapiRecipDescW
|
|
1046
|
-
|
|
1047
|
-
#else
|
|
1048
|
-
|
|
1049
|
-
typedef struct
|
|
1050
|
-
{
|
|
1051
|
-
ULONG ulReserved;
|
|
1052
|
-
ULONG ulRecipClass;
|
|
1053
|
-
PWSTR lpszName;
|
|
1054
|
-
PWSTR lpszAddress;
|
|
1055
|
-
ULONG ulEIDSize;
|
|
1056
|
-
PVOID lpEntryID;
|
|
1057
|
-
} Z7_WIN_MapiRecipDescW, *Z7_WIN_lpMapiRecipDescW;
|
|
1058
|
-
|
|
1059
|
-
typedef struct
|
|
1060
|
-
{
|
|
1061
|
-
ULONG ulReserved;
|
|
1062
|
-
ULONG flFlags;
|
|
1063
|
-
ULONG nPosition;
|
|
1064
|
-
PWSTR lpszPathName;
|
|
1065
|
-
PWSTR lpszFileName;
|
|
1066
|
-
PVOID lpFileType;
|
|
1067
|
-
} Z7_WIN_MapiFileDescW, *Z7_WIN_lpMapiFileDescW;
|
|
1068
|
-
|
|
1069
|
-
typedef struct
|
|
1070
|
-
{
|
|
1071
|
-
ULONG ulReserved;
|
|
1072
|
-
PWSTR lpszSubject;
|
|
1073
|
-
PWSTR lpszNoteText;
|
|
1074
|
-
PWSTR lpszMessageType;
|
|
1075
|
-
PWSTR lpszDateReceived;
|
|
1076
|
-
PWSTR lpszConversationID;
|
|
1077
|
-
FLAGS flFlags;
|
|
1078
|
-
Z7_WIN_lpMapiRecipDescW lpOriginator;
|
|
1079
|
-
ULONG nRecipCount;
|
|
1080
|
-
Z7_WIN_lpMapiRecipDescW lpRecips;
|
|
1081
|
-
ULONG nFileCount;
|
|
1082
|
-
Z7_WIN_lpMapiFileDescW lpFiles;
|
|
1083
|
-
} Z7_WIN_MapiMessageW, *Z7_WIN_lpMapiMessageW;
|
|
1084
|
-
|
|
1085
|
-
typedef ULONG (FAR PASCAL Z7_WIN_MAPISENDMAILW)(
|
|
1086
|
-
LHANDLE lhSession,
|
|
1087
|
-
ULONG_PTR ulUIParam,
|
|
1088
|
-
Z7_WIN_lpMapiMessageW lpMessage,
|
|
1089
|
-
FLAGS flFlags,
|
|
1090
|
-
ULONG ulReserved
|
|
1091
|
-
);
|
|
1092
|
-
typedef Z7_WIN_MAPISENDMAILW FAR *Z7_WIN_LPMAPISENDMAILW;
|
|
1093
|
-
|
|
1094
|
-
#endif // MAPI_FORCE_UNICODE
|
|
1095
|
-
}
|
|
1096
|
-
#endif // _WIN32
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
struct C_CopyFileProgress_to_IUpdateCallbackUI2 Z7_final:
|
|
1100
|
-
public ICopyFileProgress
|
|
1101
|
-
{
|
|
1102
|
-
IUpdateCallbackUI2 *Callback;
|
|
1103
|
-
HRESULT CallbackResult;
|
|
1104
|
-
// bool Disable_Break;
|
|
1105
|
-
|
|
1106
|
-
virtual DWORD CopyFileProgress(UInt64 total, UInt64 current) Z7_override
|
|
1107
|
-
{
|
|
1108
|
-
const HRESULT res = Callback->MoveArc_Progress(total, current);
|
|
1109
|
-
CallbackResult = res;
|
|
1110
|
-
// if (Disable_Break && res == E_ABORT) res = S_OK;
|
|
1111
|
-
return res == S_OK ? PROGRESS_CONTINUE : PROGRESS_CANCEL;
|
|
1112
|
-
}
|
|
1113
|
-
|
|
1114
|
-
C_CopyFileProgress_to_IUpdateCallbackUI2(
|
|
1115
|
-
IUpdateCallbackUI2 *callback) :
|
|
1116
|
-
Callback(callback),
|
|
1117
|
-
CallbackResult(S_OK)
|
|
1118
|
-
// , Disable_Break(false)
|
|
1119
|
-
{}
|
|
1120
|
-
};
|
|
1121
1045
|
|
|
1046
|
+
#endif
|
|
1122
1047
|
|
|
1123
1048
|
HRESULT UpdateArchive(
|
|
1124
1049
|
CCodecs *codecs,
|
|
@@ -1149,7 +1074,7 @@ HRESULT UpdateArchive(
|
|
|
1149
1074
|
if (options.Commands.Size() != 1)
|
|
1150
1075
|
return E_NOTIMPL;
|
|
1151
1076
|
const CActionSet &as = options.Commands[0].ActionSet;
|
|
1152
|
-
for (
|
|
1077
|
+
for (int i = 2; i < NPairState::kNumValues; i++)
|
|
1153
1078
|
if (as.StateActions[i] != NPairAction::kCompress)
|
|
1154
1079
|
return E_NOTIMPL;
|
|
1155
1080
|
}
|
|
@@ -1178,7 +1103,7 @@ HRESULT UpdateArchive(
|
|
|
1178
1103
|
if (options.SfxModule.Find(FCHAR_PATH_SEPARATOR) < 0)
|
|
1179
1104
|
{
|
|
1180
1105
|
const FString fullName = NDLL::GetModuleDirPrefix() + options.SfxModule;
|
|
1181
|
-
if (NFind::
|
|
1106
|
+
if (NFind::DoesFileExist(fullName))
|
|
1182
1107
|
{
|
|
1183
1108
|
options.SfxModule = fullName;
|
|
1184
1109
|
found = true;
|
|
@@ -1186,7 +1111,7 @@ HRESULT UpdateArchive(
|
|
|
1186
1111
|
}
|
|
1187
1112
|
if (!found)
|
|
1188
1113
|
{
|
|
1189
|
-
if (!NFind::
|
|
1114
|
+
if (!NFind::DoesFileExist(options.SfxModule))
|
|
1190
1115
|
return errorInfo.SetFromLastError("cannot find specified SFX module", options.SfxModule);
|
|
1191
1116
|
}
|
|
1192
1117
|
}
|
|
@@ -1206,7 +1131,8 @@ HRESULT UpdateArchive(
|
|
|
1206
1131
|
if (!options.VolumesSizes.IsEmpty())
|
|
1207
1132
|
{
|
|
1208
1133
|
arcPath = options.ArchivePath.GetFinalVolPath();
|
|
1209
|
-
arcPath +=
|
|
1134
|
+
arcPath += '.';
|
|
1135
|
+
arcPath += "001";
|
|
1210
1136
|
}
|
|
1211
1137
|
|
|
1212
1138
|
if (cmdArcPath2.IsEmpty())
|
|
@@ -1217,10 +1143,10 @@ HRESULT UpdateArchive(
|
|
|
1217
1143
|
else
|
|
1218
1144
|
{
|
|
1219
1145
|
NFind::CFileInfo fi;
|
|
1220
|
-
if (!fi.
|
|
1146
|
+
if (!fi.Find(us2fs(arcPath)))
|
|
1221
1147
|
{
|
|
1222
1148
|
if (renameMode)
|
|
1223
|
-
throw "can't find archive"
|
|
1149
|
+
throw "can't find archive";;
|
|
1224
1150
|
if (options.MethodMode.Type.FormatIndex < 0)
|
|
1225
1151
|
{
|
|
1226
1152
|
if (!options.SetArcPath(codecs, cmdArcPath2))
|
|
@@ -1230,37 +1156,24 @@ HRESULT UpdateArchive(
|
|
|
1230
1156
|
else
|
|
1231
1157
|
{
|
|
1232
1158
|
if (fi.IsDir())
|
|
1233
|
-
|
|
1234
|
-
us2fs(arcPath),
|
|
1235
|
-
#ifdef _WIN32
|
|
1236
|
-
ERROR_ACCESS_DENIED
|
|
1237
|
-
#else
|
|
1238
|
-
EISDIR
|
|
1239
|
-
#endif
|
|
1240
|
-
);
|
|
1241
|
-
#ifdef _WIN32
|
|
1159
|
+
throw "there is no such archive";
|
|
1242
1160
|
if (fi.IsDevice)
|
|
1243
1161
|
return E_NOTIMPL;
|
|
1244
|
-
#endif
|
|
1245
1162
|
|
|
1246
1163
|
if (!options.StdOutMode && options.UpdateArchiveItself)
|
|
1247
1164
|
if (fi.IsReadOnly())
|
|
1248
1165
|
{
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
#else
|
|
1254
|
-
EACCES
|
|
1255
|
-
#endif
|
|
1256
|
-
);
|
|
1166
|
+
errorInfo.SystemError = ERROR_ACCESS_DENIED;
|
|
1167
|
+
errorInfo.Message = "The file is read-only";
|
|
1168
|
+
errorInfo.FileNames.Add(us2fs(arcPath));
|
|
1169
|
+
return errorInfo.Get_HRESULT_Error();
|
|
1257
1170
|
}
|
|
1258
1171
|
|
|
1259
1172
|
if (options.VolumesSizes.Size() > 0)
|
|
1260
1173
|
{
|
|
1261
1174
|
errorInfo.FileNames.Add(us2fs(arcPath));
|
|
1262
|
-
|
|
1263
|
-
errorInfo.Message =
|
|
1175
|
+
errorInfo.SystemError = (DWORD)E_NOTIMPL;
|
|
1176
|
+
errorInfo.Message = kUpdateIsNotSupoorted_MultiVol;
|
|
1264
1177
|
return E_NOTIMPL;
|
|
1265
1178
|
}
|
|
1266
1179
|
CObjectVector<COpenType> types2;
|
|
@@ -1271,7 +1184,7 @@ HRESULT UpdateArchive(
|
|
|
1271
1184
|
|
|
1272
1185
|
CIntVector excl;
|
|
1273
1186
|
COpenOptions op;
|
|
1274
|
-
#ifndef
|
|
1187
|
+
#ifndef _SFX
|
|
1275
1188
|
op.props = &options.MethodMode.Properties;
|
|
1276
1189
|
#endif
|
|
1277
1190
|
op.codecs = codecs;
|
|
@@ -1281,7 +1194,7 @@ HRESULT UpdateArchive(
|
|
|
1281
1194
|
op.stream = NULL;
|
|
1282
1195
|
op.filePath = arcPath;
|
|
1283
1196
|
|
|
1284
|
-
RINOK(callback->StartOpenArchive(arcPath))
|
|
1197
|
+
RINOK(callback->StartOpenArchive(arcPath));
|
|
1285
1198
|
|
|
1286
1199
|
HRESULT result = arcLink.Open_Strict(op, openCallback);
|
|
1287
1200
|
|
|
@@ -1293,29 +1206,23 @@ HRESULT UpdateArchive(
|
|
|
1293
1206
|
if (result == S_FALSE)
|
|
1294
1207
|
return E_FAIL;
|
|
1295
1208
|
*/
|
|
1296
|
-
RINOK(res2)
|
|
1297
|
-
RINOK(result)
|
|
1209
|
+
RINOK(res2);
|
|
1210
|
+
RINOK(result);
|
|
1298
1211
|
|
|
1299
1212
|
if (arcLink.VolumePaths.Size() > 1)
|
|
1300
1213
|
{
|
|
1301
|
-
|
|
1302
|
-
errorInfo.Message =
|
|
1214
|
+
errorInfo.SystemError = (DWORD)E_NOTIMPL;
|
|
1215
|
+
errorInfo.Message = kUpdateIsNotSupoorted_MultiVol;
|
|
1303
1216
|
return E_NOTIMPL;
|
|
1304
1217
|
}
|
|
1305
1218
|
|
|
1306
1219
|
CArc &arc = arcLink.Arcs.Back();
|
|
1307
|
-
arc.
|
|
1308
|
-
|
|
1309
|
-
!fi.IsDevice;
|
|
1310
|
-
#else
|
|
1311
|
-
true;
|
|
1312
|
-
#endif
|
|
1313
|
-
if (arc.MTime.Def)
|
|
1314
|
-
arc.MTime.Set_From_FiTime(fi.MTime);
|
|
1220
|
+
arc.MTimeDefined = !fi.IsDevice;
|
|
1221
|
+
arc.MTime = fi.MTime;
|
|
1315
1222
|
|
|
1316
1223
|
if (arc.ErrorInfo.ThereIsTail)
|
|
1317
1224
|
{
|
|
1318
|
-
|
|
1225
|
+
errorInfo.SystemError = (DWORD)E_NOTIMPL;
|
|
1319
1226
|
errorInfo.Message = "There is some data block after the end of the archive";
|
|
1320
1227
|
return E_NOTIMPL;
|
|
1321
1228
|
}
|
|
@@ -1335,7 +1242,7 @@ HRESULT UpdateArchive(
|
|
|
1335
1242
|
return E_NOTIMPL;
|
|
1336
1243
|
}
|
|
1337
1244
|
|
|
1338
|
-
|
|
1245
|
+
bool thereIsInArchive = arcLink.IsOpen;
|
|
1339
1246
|
if (!thereIsInArchive && renameMode)
|
|
1340
1247
|
return E_FAIL;
|
|
1341
1248
|
|
|
@@ -1355,14 +1262,11 @@ HRESULT UpdateArchive(
|
|
|
1355
1262
|
if (options.StdInMode)
|
|
1356
1263
|
{
|
|
1357
1264
|
CDirItem di;
|
|
1358
|
-
// di.ClearBase();
|
|
1359
|
-
// di.Size = (UInt64)(Int64)-1;
|
|
1360
|
-
if (!di.SetAs_StdInFile())
|
|
1361
|
-
return GetLastError_noZero_HRESULT();
|
|
1362
1265
|
di.Name = options.StdInFileName;
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1266
|
+
di.Size = (UInt64)(Int64)-1;
|
|
1267
|
+
di.Attrib = 0;
|
|
1268
|
+
NTime::GetCurUtcFileTime(di.MTime);
|
|
1269
|
+
di.CTime = di.ATime = di.MTime;
|
|
1366
1270
|
dirItems.Items.Add(di);
|
|
1367
1271
|
}
|
|
1368
1272
|
else
|
|
@@ -1376,7 +1280,7 @@ HRESULT UpdateArchive(
|
|
|
1376
1280
|
|
|
1377
1281
|
if (needScanning)
|
|
1378
1282
|
{
|
|
1379
|
-
RINOK(callback->StartScanning())
|
|
1283
|
+
RINOK(callback->StartScanning());
|
|
1380
1284
|
|
|
1381
1285
|
dirItems.SymLinks = options.SymLinks.Val;
|
|
1382
1286
|
|
|
@@ -1385,18 +1289,10 @@ HRESULT UpdateArchive(
|
|
|
1385
1289
|
#endif
|
|
1386
1290
|
|
|
1387
1291
|
dirItems.ScanAltStreams = options.AltStreams.Val;
|
|
1388
|
-
dirItems.ExcludeDirItems = censor.ExcludeDirItems;
|
|
1389
|
-
dirItems.ExcludeFileItems = censor.ExcludeFileItems;
|
|
1390
|
-
|
|
1391
|
-
dirItems.ShareForWrite = options.OpenShareForWrite;
|
|
1392
|
-
|
|
1393
|
-
#ifndef _WIN32
|
|
1394
|
-
dirItems.StoreOwnerName = options.StoreOwnerName.Val;
|
|
1395
|
-
#endif
|
|
1396
1292
|
|
|
1397
|
-
|
|
1293
|
+
HRESULT res = EnumerateItems(censor,
|
|
1398
1294
|
options.PathMode,
|
|
1399
|
-
|
|
1295
|
+
options.AddPathPrefix,
|
|
1400
1296
|
dirItems);
|
|
1401
1297
|
|
|
1402
1298
|
if (res != S_OK)
|
|
@@ -1406,15 +1302,13 @@ HRESULT UpdateArchive(
|
|
|
1406
1302
|
return res;
|
|
1407
1303
|
}
|
|
1408
1304
|
|
|
1409
|
-
RINOK(callback->FinishScanning(dirItems.Stat))
|
|
1305
|
+
RINOK(callback->FinishScanning(dirItems.Stat));
|
|
1410
1306
|
|
|
1411
|
-
// 22.00: we don't need parent folder, if absolute path mode
|
|
1412
|
-
if (options.PathMode != NWildcard::k_AbsPath)
|
|
1413
1307
|
if (censor.Pairs.Size() == 1)
|
|
1414
1308
|
{
|
|
1415
1309
|
NFind::CFileInfo fi;
|
|
1416
1310
|
FString prefix = us2fs(censor.Pairs[0].Prefix);
|
|
1417
|
-
prefix.
|
|
1311
|
+
prefix += '.';
|
|
1418
1312
|
// UString prefix = censor.Pairs[0].Prefix;
|
|
1419
1313
|
/*
|
|
1420
1314
|
if (prefix.Back() == WCHAR_PATH_SEPARATOR)
|
|
@@ -1425,7 +1319,11 @@ HRESULT UpdateArchive(
|
|
|
1425
1319
|
if (fi.Find(prefix))
|
|
1426
1320
|
if (fi.IsDir())
|
|
1427
1321
|
{
|
|
1428
|
-
parentDirItem.
|
|
1322
|
+
parentDirItem.Size = fi.Size;
|
|
1323
|
+
parentDirItem.CTime = fi.CTime;
|
|
1324
|
+
parentDirItem.ATime = fi.ATime;
|
|
1325
|
+
parentDirItem.MTime = fi.MTime;
|
|
1326
|
+
parentDirItem.Attrib = fi.Attrib;
|
|
1429
1327
|
parentDirItem_Ptr = &parentDirItem;
|
|
1430
1328
|
|
|
1431
1329
|
int secureIndex = -1;
|
|
@@ -1434,6 +1332,8 @@ HRESULT UpdateArchive(
|
|
|
1434
1332
|
dirItems.AddSecurityItem(prefix, secureIndex);
|
|
1435
1333
|
#endif
|
|
1436
1334
|
parentDirItem.SecureIndex = secureIndex;
|
|
1335
|
+
|
|
1336
|
+
parentDirItem_Ptr = &parentDirItem;
|
|
1437
1337
|
}
|
|
1438
1338
|
}
|
|
1439
1339
|
}
|
|
@@ -1493,7 +1393,7 @@ HRESULT UpdateArchive(
|
|
|
1493
1393
|
UString s;
|
|
1494
1394
|
s = "It is not allowed to include archive to itself";
|
|
1495
1395
|
s.Add_LF();
|
|
1496
|
-
s +=
|
|
1396
|
+
s += path;
|
|
1497
1397
|
throw s;
|
|
1498
1398
|
}
|
|
1499
1399
|
}
|
|
@@ -1530,7 +1430,7 @@ HRESULT UpdateArchive(
|
|
|
1530
1430
|
{
|
|
1531
1431
|
RINOK(EnumerateInArchiveItems(
|
|
1532
1432
|
// options.StoreAltStreams,
|
|
1533
|
-
censor, arcLink.Arcs.Back(), arcItems))
|
|
1433
|
+
censor, arcLink.Arcs.Back(), arcItems));
|
|
1534
1434
|
}
|
|
1535
1435
|
|
|
1536
1436
|
/*
|
|
@@ -1543,16 +1443,14 @@ HRESULT UpdateArchive(
|
|
|
1543
1443
|
CByteBuffer processedItems;
|
|
1544
1444
|
if (options.DeleteAfterCompressing)
|
|
1545
1445
|
{
|
|
1546
|
-
|
|
1446
|
+
unsigned num = dirItems.Items.Size();
|
|
1547
1447
|
processedItems.Alloc(num);
|
|
1548
1448
|
for (unsigned i = 0; i < num; i++)
|
|
1549
1449
|
processedItems[i] = 0;
|
|
1550
1450
|
}
|
|
1551
1451
|
|
|
1552
|
-
CMultiOutStream_Bunch multiStreams;
|
|
1553
|
-
|
|
1554
1452
|
/*
|
|
1555
|
-
#ifndef
|
|
1453
|
+
#ifndef _NO_CRYPTO
|
|
1556
1454
|
if (arcLink.PasswordWasAsked)
|
|
1557
1455
|
{
|
|
1558
1456
|
// We set password, if open have requested password
|
|
@@ -1596,30 +1494,19 @@ HRESULT UpdateArchive(
|
|
|
1596
1494
|
parentDirItem_Ptr,
|
|
1597
1495
|
|
|
1598
1496
|
tempFiles,
|
|
1599
|
-
|
|
1600
|
-
errorInfo, callback, st))
|
|
1497
|
+
errorInfo, callback, st));
|
|
1601
1498
|
|
|
1602
|
-
RINOK(callback->FinishArchive(st))
|
|
1499
|
+
RINOK(callback->FinishArchive(st));
|
|
1603
1500
|
}
|
|
1604
1501
|
|
|
1605
1502
|
|
|
1606
1503
|
if (thereIsInArchive)
|
|
1607
1504
|
{
|
|
1608
|
-
RINOK(arcLink.Close())
|
|
1505
|
+
RINOK(arcLink.Close());
|
|
1609
1506
|
arcLink.Release();
|
|
1610
1507
|
}
|
|
1611
1508
|
|
|
1612
|
-
|
|
1613
|
-
RINOK(multiStreams.Destruct())
|
|
1614
|
-
|
|
1615
|
-
// here we disable deleting of temp archives.
|
|
1616
|
-
// note: archive moving can fail, or it can be interrupted,
|
|
1617
|
-
// if we move new temp update from another volume.
|
|
1618
|
-
// And we still want to keep temp archive in that case,
|
|
1619
|
-
// because we will have deleted original archive.
|
|
1620
|
-
tempFiles.NeedDeleteFiles = false;
|
|
1621
|
-
// tempFiles.Paths.Clear();
|
|
1622
|
-
|
|
1509
|
+
tempFiles.Paths.Clear();
|
|
1623
1510
|
if (createTempFile)
|
|
1624
1511
|
{
|
|
1625
1512
|
try
|
|
@@ -1634,52 +1521,13 @@ HRESULT UpdateArchive(
|
|
|
1634
1521
|
if (!DeleteFileAlways(us2fs(arcPath)))
|
|
1635
1522
|
return errorInfo.SetFromLastError("cannot delete the file", us2fs(arcPath));
|
|
1636
1523
|
}
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
{
|
|
1640
|
-
NFind::CFileInfo fi;
|
|
1641
|
-
if (fi.Find(tempPath))
|
|
1642
|
-
totalArcSize = fi.Size;
|
|
1643
|
-
}
|
|
1644
|
-
RINOK(callback->MoveArc_Start(fs2us(tempPath), arcPath,
|
|
1645
|
-
totalArcSize, BoolToInt(thereIsInArchive)))
|
|
1646
|
-
|
|
1647
|
-
C_CopyFileProgress_to_IUpdateCallbackUI2 prox(callback);
|
|
1648
|
-
// if we update archive, we have removed original archive.
|
|
1649
|
-
// So if we break archive moving, we will have only temporary archive.
|
|
1650
|
-
// We can disable breaking here:
|
|
1651
|
-
// prox.Disable_Break = thereIsInArchive;
|
|
1652
|
-
|
|
1653
|
-
if (!MyMoveFile_with_Progress(tempPath, us2fs(arcPath), &prox))
|
|
1524
|
+
|
|
1525
|
+
if (!MyMoveFile(tempPath, us2fs(arcPath)))
|
|
1654
1526
|
{
|
|
1655
|
-
errorInfo.
|
|
1656
|
-
errorInfo.Message = "cannot move the file";
|
|
1657
|
-
if (errorInfo.SystemError == ERROR_INVALID_PARAMETER)
|
|
1658
|
-
{
|
|
1659
|
-
if (totalArcSize > (UInt32)(Int32)-1)
|
|
1660
|
-
{
|
|
1661
|
-
// bool isFsDetected = false;
|
|
1662
|
-
// if (NSystem::Is_File_LimitedBy_4GB(us2fs(arcPath), isFsDetected) || !isFsDetected)
|
|
1663
|
-
{
|
|
1664
|
-
errorInfo.Message.Add_LF();
|
|
1665
|
-
errorInfo.Message += "Archive file size exceeds 4 GB";
|
|
1666
|
-
}
|
|
1667
|
-
}
|
|
1668
|
-
}
|
|
1669
|
-
// if there was no input archive, and we have operation breaking.
|
|
1670
|
-
// then we can remove temporary archive, because we still have original uncompressed files.
|
|
1671
|
-
if (!thereIsInArchive
|
|
1672
|
-
&& prox.CallbackResult == E_ABORT)
|
|
1673
|
-
tempFiles.NeedDeleteFiles = true;
|
|
1674
|
-
errorInfo.FileNames.Add(tempPath);
|
|
1527
|
+
errorInfo.SetFromLastError("cannot move the file", tempPath);
|
|
1675
1528
|
errorInfo.FileNames.Add(us2fs(arcPath));
|
|
1676
|
-
RINOK(prox.CallbackResult)
|
|
1677
1529
|
return errorInfo.Get_HRESULT_Error();
|
|
1678
1530
|
}
|
|
1679
|
-
|
|
1680
|
-
// MoveArc_Finish() can return delayed user break (E_ABORT) status,
|
|
1681
|
-
// if callback callee ignored interruption to finish archive creation operation.
|
|
1682
|
-
RINOK(callback->MoveArc_Finish())
|
|
1683
1531
|
|
|
1684
1532
|
/*
|
|
1685
1533
|
if (attrib != INVALID_FILE_ATTRIBUTES && (attrib & FILE_ATTRIBUTE_READONLY))
|
|
@@ -1698,8 +1546,6 @@ HRESULT UpdateArchive(
|
|
|
1698
1546
|
|
|
1699
1547
|
|
|
1700
1548
|
#if defined(_WIN32) && !defined(UNDER_CE)
|
|
1701
|
-
|
|
1702
|
-
Z7_DIAGNOSTIC_IGNORE_CAST_FUNCTION
|
|
1703
1549
|
|
|
1704
1550
|
if (options.EMailMode)
|
|
1705
1551
|
{
|
|
@@ -1710,19 +1556,6 @@ Z7_DIAGNOSTIC_IGNORE_CAST_FUNCTION
|
|
|
1710
1556
|
return errorInfo.Get_HRESULT_Error();
|
|
1711
1557
|
}
|
|
1712
1558
|
|
|
1713
|
-
FStringVector fullPaths;
|
|
1714
|
-
unsigned i;
|
|
1715
|
-
|
|
1716
|
-
for (i = 0; i < options.Commands.Size(); i++)
|
|
1717
|
-
{
|
|
1718
|
-
CArchivePath &ap = options.Commands[i].ArchivePath;
|
|
1719
|
-
const FString finalPath = us2fs(ap.GetFinalPath());
|
|
1720
|
-
FString arcPath2;
|
|
1721
|
-
if (!MyGetFullPathName(finalPath, arcPath2))
|
|
1722
|
-
return errorInfo.SetFromLastError("GetFullPathName error", finalPath);
|
|
1723
|
-
fullPaths.Add(arcPath2);
|
|
1724
|
-
}
|
|
1725
|
-
|
|
1726
1559
|
/*
|
|
1727
1560
|
LPMAPISENDDOCUMENTS fnSend = (LPMAPISENDDOCUMENTS)mapiLib.GetProc("MAPISendDocuments");
|
|
1728
1561
|
if (fnSend == 0)
|
|
@@ -1731,70 +1564,25 @@ Z7_DIAGNOSTIC_IGNORE_CAST_FUNCTION
|
|
|
1731
1564
|
return errorInfo.Get_HRESULT_Error();
|
|
1732
1565
|
}
|
|
1733
1566
|
*/
|
|
1734
|
-
const
|
|
1735
|
-
Z7_WIN_LPMAPISENDMAILW sendMailW = Z7_GET_PROC_ADDRESS(
|
|
1736
|
-
Z7_WIN_LPMAPISENDMAILW, mapiLib.Get_HMODULE(),
|
|
1737
|
-
"MAPISendMailW");
|
|
1738
|
-
if (sendMailW)
|
|
1739
|
-
{
|
|
1740
|
-
|
|
1741
|
-
CCurrentDirRestorer curDirRestorer;
|
|
1742
|
-
|
|
1743
|
-
UStringVector paths;
|
|
1744
|
-
UStringVector names;
|
|
1745
1567
|
|
|
1746
|
-
|
|
1568
|
+
LPMAPISENDMAIL sendMail = (LPMAPISENDMAIL)mapiLib.GetProc("MAPISendMail");
|
|
1569
|
+
if (sendMail == 0)
|
|
1747
1570
|
{
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
paths.Add(arcPath2);
|
|
1751
|
-
names.Add(fileName);
|
|
1752
|
-
// Warning!!! MAPISendDocuments function changes Current directory
|
|
1753
|
-
// fnSend(0, ";", (LPSTR)(LPCSTR)path, (LPSTR)(LPCSTR)name, 0);
|
|
1571
|
+
errorInfo.SetFromLastError("7-Zip cannot find MAPISendMail function");
|
|
1572
|
+
return errorInfo.Get_HRESULT_Error();;
|
|
1754
1573
|
}
|
|
1755
1574
|
|
|
1756
|
-
|
|
1757
|
-
|
|
1575
|
+
FStringVector fullPaths;
|
|
1576
|
+
unsigned i;
|
|
1758
1577
|
|
|
1759
|
-
for (i = 0; i <
|
|
1760
|
-
{
|
|
1761
|
-
Z7_WIN_MapiFileDescW &f = files[i];
|
|
1762
|
-
memset(&f, 0, sizeof(f));
|
|
1763
|
-
f.nPosition = 0xFFFFFFFF;
|
|
1764
|
-
f.lpszPathName = paths[i].Ptr_non_const();
|
|
1765
|
-
f.lpszFileName = names[i].Ptr_non_const();
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
{
|
|
1769
|
-
Z7_WIN_MapiMessageW m;
|
|
1770
|
-
memset(&m, 0, sizeof(m));
|
|
1771
|
-
m.nFileCount = files.Size();
|
|
1772
|
-
m.lpFiles = files.NonConstData();
|
|
1773
|
-
|
|
1774
|
-
const UString addr (options.EMailAddress);
|
|
1775
|
-
Z7_WIN_MapiRecipDescW rec;
|
|
1776
|
-
if (!addr.IsEmpty())
|
|
1777
|
-
{
|
|
1778
|
-
memset(&rec, 0, sizeof(rec));
|
|
1779
|
-
rec.ulRecipClass = MAPI_TO;
|
|
1780
|
-
rec.lpszAddress = addr.Ptr_non_const();
|
|
1781
|
-
m.nRecipCount = 1;
|
|
1782
|
-
m.lpRecips = &rec;
|
|
1783
|
-
}
|
|
1784
|
-
|
|
1785
|
-
sendMailW((LHANDLE)0, 0, &m, MAPI_DIALOG, 0);
|
|
1786
|
-
}
|
|
1787
|
-
}
|
|
1788
|
-
else
|
|
1789
|
-
{
|
|
1790
|
-
const
|
|
1791
|
-
LPMAPISENDMAIL sendMail = Z7_GET_PROC_ADDRESS(
|
|
1792
|
-
LPMAPISENDMAIL, mapiLib.Get_HMODULE(),
|
|
1793
|
-
"MAPISendMail");
|
|
1794
|
-
if (!sendMail)
|
|
1578
|
+
for (i = 0; i < options.Commands.Size(); i++)
|
|
1795
1579
|
{
|
|
1796
|
-
|
|
1797
|
-
|
|
1580
|
+
CArchivePath &ap = options.Commands[i].ArchivePath;
|
|
1581
|
+
FString finalPath = us2fs(ap.GetFinalPath());
|
|
1582
|
+
FString arcPath2;
|
|
1583
|
+
if (!MyGetFullPathName(finalPath, arcPath2))
|
|
1584
|
+
return errorInfo.SetFromLastError("GetFullPathName error", finalPath);
|
|
1585
|
+
fullPaths.Add(arcPath2);
|
|
1798
1586
|
}
|
|
1799
1587
|
|
|
1800
1588
|
CCurrentDirRestorer curDirRestorer;
|
|
@@ -1822,15 +1610,15 @@ Z7_DIAGNOSTIC_IGNORE_CAST_FUNCTION
|
|
|
1822
1610
|
MapiFileDesc &f = files[i];
|
|
1823
1611
|
memset(&f, 0, sizeof(f));
|
|
1824
1612
|
f.nPosition = 0xFFFFFFFF;
|
|
1825
|
-
f.lpszPathName = paths[i]
|
|
1826
|
-
f.lpszFileName = names[i]
|
|
1613
|
+
f.lpszPathName = (char *)(const char *)paths[i];
|
|
1614
|
+
f.lpszFileName = (char *)(const char *)names[i];
|
|
1827
1615
|
}
|
|
1828
1616
|
|
|
1829
1617
|
{
|
|
1830
1618
|
MapiMessage m;
|
|
1831
1619
|
memset(&m, 0, sizeof(m));
|
|
1832
1620
|
m.nFileCount = files.Size();
|
|
1833
|
-
m.lpFiles = files.
|
|
1621
|
+
m.lpFiles = &files.Front();
|
|
1834
1622
|
|
|
1835
1623
|
const AString addr (GetAnsiString(options.EMailAddress));
|
|
1836
1624
|
MapiRecipDesc rec;
|
|
@@ -1838,14 +1626,13 @@ Z7_DIAGNOSTIC_IGNORE_CAST_FUNCTION
|
|
|
1838
1626
|
{
|
|
1839
1627
|
memset(&rec, 0, sizeof(rec));
|
|
1840
1628
|
rec.ulRecipClass = MAPI_TO;
|
|
1841
|
-
rec.lpszAddress =
|
|
1629
|
+
rec.lpszAddress = (char *)(const char *)addr;
|
|
1842
1630
|
m.nRecipCount = 1;
|
|
1843
1631
|
m.lpRecips = &rec;
|
|
1844
1632
|
}
|
|
1845
1633
|
|
|
1846
1634
|
sendMail((LHANDLE)0, 0, &m, MAPI_DIALOG, 0);
|
|
1847
1635
|
}
|
|
1848
|
-
}
|
|
1849
1636
|
}
|
|
1850
1637
|
|
|
1851
1638
|
#endif
|
|
@@ -1870,42 +1657,28 @@ Z7_DIAGNOSTIC_IGNORE_CAST_FUNCTION
|
|
|
1870
1657
|
}
|
|
1871
1658
|
else
|
|
1872
1659
|
{
|
|
1873
|
-
|
|
1874
|
-
if (processedItems[i] != 0
|
|
1875
|
-
// || dirItem.Size == 0
|
|
1876
|
-
// || dirItem.AreReparseData()
|
|
1877
|
-
)
|
|
1660
|
+
if (processedItems[i] != 0 || dirItem.Size == 0)
|
|
1878
1661
|
{
|
|
1879
1662
|
NFind::CFileInfo fileInfo;
|
|
1880
|
-
|
|
1881
|
-
if (fileInfo.Find(phyPath, !options.SymLinks.Val))
|
|
1663
|
+
if (fileInfo.Find(phyPath))
|
|
1882
1664
|
{
|
|
1883
|
-
|
|
1884
|
-
if (
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
So we don't compare sizes for that case here */
|
|
1888
|
-
is_SameSize = fileInfo.IsOsSymLink();
|
|
1889
|
-
}
|
|
1890
|
-
else
|
|
1891
|
-
is_SameSize = (fileInfo.Size == dirItem.Size);
|
|
1892
|
-
|
|
1893
|
-
if (is_SameSize
|
|
1894
|
-
&& Compare_FiTime(&fileInfo.MTime, &dirItem.MTime) == 0
|
|
1895
|
-
&& Compare_FiTime(&fileInfo.CTime, &dirItem.CTime) == 0)
|
|
1665
|
+
// maybe we must exclude also files with archive name: "a a.7z * -sdel"
|
|
1666
|
+
if (fileInfo.Size == dirItem.Size
|
|
1667
|
+
&& CompareFileTime(&fileInfo.MTime, &dirItem.MTime) == 0
|
|
1668
|
+
&& CompareFileTime(&fileInfo.CTime, &dirItem.CTime) == 0)
|
|
1896
1669
|
{
|
|
1897
|
-
RINOK(callback->DeletingAfterArchiving(phyPath, false))
|
|
1670
|
+
RINOK(callback->DeletingAfterArchiving(phyPath, false));
|
|
1898
1671
|
DeleteFileAlways(phyPath);
|
|
1899
1672
|
}
|
|
1900
1673
|
}
|
|
1901
1674
|
}
|
|
1902
1675
|
else
|
|
1903
1676
|
{
|
|
1904
|
-
// file was skipped
|
|
1677
|
+
// file was skipped
|
|
1905
1678
|
/*
|
|
1906
1679
|
errorInfo.SystemError = 0;
|
|
1907
1680
|
errorInfo.Message = "file was not processed";
|
|
1908
|
-
errorInfo.
|
|
1681
|
+
errorInfo.FileName = phyPath;
|
|
1909
1682
|
return E_FAIL;
|
|
1910
1683
|
*/
|
|
1911
1684
|
}
|
|
@@ -1919,12 +1692,12 @@ Z7_DIAGNOSTIC_IGNORE_CAST_FUNCTION
|
|
|
1919
1692
|
const FString phyPath = dirItems.GetPhyPath(pairs[i].Index);
|
|
1920
1693
|
if (NFind::DoesDirExist(phyPath))
|
|
1921
1694
|
{
|
|
1922
|
-
RINOK(callback->DeletingAfterArchiving(phyPath, true))
|
|
1923
|
-
|
|
1695
|
+
RINOK(callback->DeletingAfterArchiving(phyPath, true));
|
|
1696
|
+
RemoveDir(phyPath);
|
|
1924
1697
|
}
|
|
1925
1698
|
}
|
|
1926
1699
|
|
|
1927
|
-
RINOK(callback->FinishDeletingAfterArchiving())
|
|
1700
|
+
RINOK(callback->FinishDeletingAfterArchiving());
|
|
1928
1701
|
}
|
|
1929
1702
|
|
|
1930
1703
|
return S_OK;
|