diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-11-26 23:18:21 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-05-19 03:43:25 +0200 |
commit | b28843b60755dbc3c718502c754a3244ed43abe9 (patch) | |
tree | f734449a15de6807fc174f255caca7f660d3a5aa /onlineupdate | |
parent | fix warnings in windows only code (diff) | |
download | core-b28843b60755dbc3c718502c754a3244ed43abe9.tar.gz core-b28843b60755dbc3c718502c754a3244ed43abe9.zip |
workaround for compile error
Change-Id: I23c0e39cf74424febc78a5e0785fa2a889d9cd56
Diffstat (limited to 'onlineupdate')
-rw-r--r-- | onlineupdate/source/update/updater/updater.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index dcf5cfb4a6e2..9057fd3e76eb 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -1488,7 +1488,8 @@ PatchFile::Prepare() // when we're done creating it and when we go to apply it. if (!LockFile((HANDLE)_get_osfhandle(fileno(mPatchStream)), (DWORD)0, (DWORD)0, (DWORD)-1, (DWORD)-1)) { LOG(("Couldn't lock patch file: %d", GetLastError())); - return LOCK_ERROR_PATCH_FILE; + // TODO: moggi: fix the build problem with LOCK_ERROR_PATCH_FILE + return WRITE_ERROR; //return LOCK_ERROR_PATCH_FILE; } char sourcefile[MAXPATHLEN]; if (!WideCharToMultiByte(CP_UTF8, 0, mPatchFile, -1, sourcefile, MAXPATHLEN, |