Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: courgette/third_party/bsdiff/bsdiff_apply.cc

Issue 2769353003: Return BSPatch value (previously, was ignored). (Closed)
Patch Set: Through #11 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: courgette/third_party/bsdiff/bsdiff_apply.cc
diff --git a/courgette/third_party/bsdiff/bsdiff_apply.cc b/courgette/third_party/bsdiff/bsdiff_apply.cc
index 8d43c5d5175856c577d8c07c60f3fea7b7056639..ab7b623e9de737862264b2635733396523570c7c 100644
--- a/courgette/third_party/bsdiff/bsdiff_apply.cc
+++ b/courgette/third_party/bsdiff/bsdiff_apply.cc
@@ -97,6 +97,7 @@ BSDiffStatus MBS_ApplyPatch(const MBSPatchHeader* header,
const uint8_t* extra_start = extra_bytes->Buffer();
const uint8_t* extra_end = extra_start + extra_bytes->Remaining();
const uint8_t* extra_position = extra_start;
+ extra_bytes->Skip(extra_bytes->Remaining());
const uint8_t* old_position = old_start;
@@ -185,9 +186,7 @@ BSDiffStatus ApplyBinaryPatch(SourceStream* old_stream,
if (CalculateCrc(old_start, old_size) != header.scrc32)
return CRC_ERROR;
- MBS_ApplyPatch(&header, patch_stream, old_start, old_size, new_stream);
-
- return OK;
+ return MBS_ApplyPatch(&header, patch_stream, old_start, old_size, new_stream);
}
BSDiffStatus ApplyBinaryPatch(base::File old_file,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698