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

Unified Diff: third_party/bspatch/mbspatch.cc

Issue 284733002: bspatch: Report errors on MBS_ApplyPatch. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « third_party/bspatch/README.chromium ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/bspatch/mbspatch.cc
diff --git a/third_party/bspatch/mbspatch.cc b/third_party/bspatch/mbspatch.cc
index 164cc3caed0d7bda5c79e629cd4a3404818af178..d00bc99d1297b4cc9bd032f2831f4267b44c7064 100644
--- a/third_party/bspatch/mbspatch.cc
+++ b/third_party/bspatch/mbspatch.cc
@@ -86,7 +86,7 @@ MBS_ReadHeader(int fd, MBSPatchHeader *header)
return OK;
}
-
+
int
MBS_ApplyPatch(const MBSPatchHeader *header, int patchfd,
unsigned char *fbuffer, int filefd)
@@ -263,7 +263,7 @@ int ApplyBinaryPatch(const wchar_t *old_file, const wchar_t *patch_file,
break;
}
- MBS_ApplyPatch(&header, pfd, buf, nfd);
+ ret = MBS_ApplyPatch(&header, pfd, buf, nfd);
grt (UTC plus 2) 2014/05/13 15:10:06 nice catch. shouldn't this be: if ((ret = MBS_
deymo 2014/05/13 18:14:40 Yeah, both options work (because this is the last
grt (UTC plus 2) 2014/05/13 18:37:04 oh, ha. i didn't notice that it was while(0). in t
} while (0);
free(buf);
« no previous file with comments | « third_party/bspatch/README.chromium ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698