From 9aa90b50c8906226bc480c1d228d3c6c1abd064f Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Sat, 10 Aug 2019 23:36:05 +0200 Subject: Fix typos Change-Id: I94d0e85c731801b8b0ec844ae2a8f268b2f1022e Reviewed-on: https://gerrit.libreoffice.org/77256 Reviewed-by: Julien Nabet Tested-by: Julien Nabet --- onlineupdate/source/service/serviceinstall.cxx | 2 +- onlineupdate/source/service/workmonitor.cxx | 2 +- onlineupdate/source/update/updater/updater.cxx | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'onlineupdate') diff --git a/onlineupdate/source/service/serviceinstall.cxx b/onlineupdate/source/service/serviceinstall.cxx index edff2e3c2794..7d53d25cbd6b 100644 --- a/onlineupdate/source/service/serviceinstall.cxx +++ b/onlineupdate/source/service/serviceinstall.cxx @@ -75,7 +75,7 @@ ReadMaintenanceServiceStrings(LPCWSTR path, { // Read in the maintenance service description string if specified. const unsigned int kNumStrings = 1; - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice const char *kServiceKeys = "MozillaMaintenanceDescription\0"; char serviceStrings[kNumStrings][MAX_TEXT_LEN]; int result = ReadStrings(path, kServiceKeys, diff --git a/onlineupdate/source/service/workmonitor.cxx b/onlineupdate/source/service/workmonitor.cxx index 05cf2481e7ce..6228b1e6c53f 100644 --- a/onlineupdate/source/service/workmonitor.cxx +++ b/onlineupdate/source/service/workmonitor.cxx @@ -702,7 +702,7 @@ ExecuteServiceCommand(int argc, LPWSTR *argv) { // Use the passed in command line arguments for the update, except for the - // path to updater.exe. We copy updater.exe to a the directory of the + // path to updater.exe. We copy updater.exe to the directory of the // MozillaMaintenance service so that a low integrity process cannot // replace the updater.exe at any point and use that for the update. // It also makes DLL injection attacks harder. diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx index 1166501f575e..05515bef3d35 100644 --- a/onlineupdate/source/update/updater/updater.cxx +++ b/onlineupdate/source/update/updater/updater.cxx @@ -301,7 +301,7 @@ EnvHasValue(const char *name) #endif /** - * Coverts a relative update path to a absolute path related to the working + * Converts a relative update path to an absolute path related to the working * or install directory. Allocates a new NS_tchar[] based path! * * @param relpath @@ -2011,7 +2011,7 @@ LaunchWinPostProcess(const WCHAR *installationDir, WCHAR workingDirectory[MAX_PATH + 1] = { L'\0' }; wcsncpy(workingDirectory, installationDir, MAX_PATH); - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice // Most likely we don't have the helper method yet. Check if we really need it. // Launch helper.exe to perform post processing (e.g. registry and log file @@ -2561,7 +2561,7 @@ WaitForServiceFinishThread(void* /*param*/) static int ReadMARChannelIDs(const NS_tchar *path, MARChannelStringTable *results) { - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice // Check where this function gets its parameters from const unsigned int kNumStrings = 1; const char *kUpdaterKeys = "ACCEPTED_MAR_CHANNEL_IDS\0"; @@ -2672,7 +2672,7 @@ CheckSignature(ArchiveReader& archiveReader) { NS_tchar updateSettingsPath[MAX_TEXT_LEN]; - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice // These paths need to be adapted for us. int nWrittenBytes = NS_tsnprintf(updateSettingsPath, sizeof(updateSettingsPath) / sizeof(updateSettingsPath[0]), @@ -2899,7 +2899,7 @@ int NS_main(int argc, NS_tchar **argv) const int callbackIndex = 6; #ifdef MACOSX - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice bool isElevated = strstr(argv[0], "/Library/PrivilegedHelperTools/org.mozilla.updater") != 0; if (isElevated) @@ -2995,7 +2995,7 @@ int NS_main(int argc, NS_tchar **argv) // Remove everything except close window from the context menu { - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice HKEY hkApp = nullptr; RegCreateKeyExW(HKEY_CURRENT_USER, L"Software\\Classes\\Applications", 0, nullptr, REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, nullptr, @@ -3318,7 +3318,7 @@ int NS_main(int argc, NS_tchar **argv) if (useService) { WCHAR maintenanceServiceKey[MAX_PATH + 1]; - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice // Most likely the registry part is not correct yet if (CalculateRegistryPathFromFilePath(gInstallDirPath, maintenanceServiceKey)) @@ -4462,7 +4462,7 @@ int DoUpdate(ArchiveReader& archiveReader) ensure_parent_dir(manifest); // extract the manifest - // TODO: moggi: needs adaption for LibreOffice + // TODO: moggi: needs adaptation for LibreOffice // Why would we need the manifest? Even if we need it why would we need 2? int rv = archiveReader.ExtractFile("updatev3.manifest", manifest); if (rv) -- cgit v1.2.3