summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--third_party/bspatch/README.chromium1
-rw-r--r--third_party/bspatch/mbspatch.cc4
2 files changed, 3 insertions, 2 deletions
diff --git a/third_party/bspatch/README.chromium b/third_party/bspatch/README.chromium
index ad044e3..f9f38a6 100644
--- a/third_party/bspatch/README.chromium
+++ b/third_party/bspatch/README.chromium
@@ -16,3 +16,4 @@ Local changes include CRC32 verification and improvements in error handling.
Update(08 Sep 08): Changed ApplyBinaryPatch to accept wchar_t paths
instead of char paths.
+Update(12 May 13): Report error on MBS_ApplyPatch failure.
diff --git a/third_party/bspatch/mbspatch.cc b/third_party/bspatch/mbspatch.cc
index 164cc3c..d00bc99 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);
} while (0);
free(buf);