summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2017-11-12 09:35:54 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2017-11-12 09:35:54 +0100
commitb2a5691d57886f207ca049853158ecb1d1f2980f (patch)
treedb51eae55903915fdee4cba91e684a74d0451f9f /applypatch/applypatch.cpp
parentSnap for 4439972 from deca0cb59c0fbac2a9ecca2fb7db7d324a43b81c to pi-release (diff)
parentMerge "applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch." am: de07371b03 am: e2296b7a25 (diff)
downloadandroid_bootable_recovery-b2a5691d57886f207ca049853158ecb1d1f2980f.tar
android_bootable_recovery-b2a5691d57886f207ca049853158ecb1d1f2980f.tar.gz
android_bootable_recovery-b2a5691d57886f207ca049853158ecb1d1f2980f.tar.bz2
android_bootable_recovery-b2a5691d57886f207ca049853158ecb1d1f2980f.tar.lz
android_bootable_recovery-b2a5691d57886f207ca049853158ecb1d1f2980f.tar.xz
android_bootable_recovery-b2a5691d57886f207ca049853158ecb1d1f2980f.tar.zst
android_bootable_recovery-b2a5691d57886f207ca049853158ecb1d1f2980f.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) {