diff options
author | Tao Bao <tbao@google.com> | 2017-11-11 02:09:47 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-11-11 02:09:47 +0100 |
commit | de07371b034c92458c6f21eb2a88988dbf1e8160 (patch) | |
tree | 52c1336bbc9b9859377e53b4debc8fb20ff18dd9 /applypatch/applypatch.cpp | |
parent | Merge "Include bspatch.h from bsdiff/" (diff) | |
parent | applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch. (diff) | |
download | android_bootable_recovery-de07371b034c92458c6f21eb2a88988dbf1e8160.tar android_bootable_recovery-de07371b034c92458c6f21eb2a88988dbf1e8160.tar.gz android_bootable_recovery-de07371b034c92458c6f21eb2a88988dbf1e8160.tar.bz2 android_bootable_recovery-de07371b034c92458c6f21eb2a88988dbf1e8160.tar.lz android_bootable_recovery-de07371b034c92458c6f21eb2a88988dbf1e8160.tar.xz android_bootable_recovery-de07371b034c92458c6f21eb2a88988dbf1e8160.tar.zst android_bootable_recovery-de07371b034c92458c6f21eb2a88988dbf1e8160.zip |
Diffstat (limited to 'applypatch/applypatch.cpp')
-rw-r--r-- | applypatch/applypatch.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/applypatch/applypatch.cpp b/applypatch/applypatch.cpp index 2153b5f19..41a72eb15 100644 --- a/applypatch/applypatch.cpp +++ b/applypatch/applypatch.cpp @@ -651,11 +651,11 @@ static int GenerateTarget(const FileContents& source_file, const std::unique_ptr int result; if (use_bsdiff) { - result = ApplyBSDiffPatch(source_file.data.data(), source_file.data.size(), patch.get(), 0, - sink, &ctx); + result = + ApplyBSDiffPatch(source_file.data.data(), source_file.data.size(), *patch, 0, sink, &ctx); } else { - result = ApplyImagePatch(source_file.data.data(), source_file.data.size(), patch.get(), sink, - &ctx, bonus_data); + result = ApplyImagePatch(source_file.data.data(), source_file.data.size(), *patch, sink, &ctx, + bonus_data); } if (result != 0) { |