summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-03 00:36:06 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 03:43:33 +0200
commitc13b1c56e57dfb0d56a3e6d726377959e1d3bd78 (patch)
treeb3a882cf98b22d72e17dc91c594204c26ebccc4b
parentff65b97cf29bda2a46e3a19d535d67b062a8f3fa (diff)
without the wb+ reading the patch file will fail
Change-Id: I61be299647d41bb464bea039630ddd4ff545f412
-rw-r--r--onlineupdate/source/update/updater/updater.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx
index 57ac77507a8b..3c5baca1e3ac 100644
--- a/onlineupdate/source/update/updater/updater.cxx
+++ b/onlineupdate/source/update/updater/updater.cxx
@@ -1610,7 +1610,7 @@ PatchFile::Prepare()
NS_tremove(spath);
- mPatchStream = NS_tfopen(spath, NS_T("wb"));
+ mPatchStream = NS_tfopen(spath, NS_T("wb+"));
if (!mPatchStream)
return WRITE_ERROR;