summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-11-11 02:09:47 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-11-11 02:09:47 +0100
commitde07371b034c92458c6f21eb2a88988dbf1e8160 (patch)
tree52c1336bbc9b9859377e53b4debc8fb20ff18dd9 /applypatch/applypatch.cpp
parentMerge "Include bspatch.h from bsdiff/" (diff)
parentapplypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch. (diff)
downloadandroid_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.cpp8
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) {