diff options
-rw-r--r-- | desktop/source/app/updater.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx index f31f2800dc4b..07f24b48378f 100644 --- a/desktop/source/app/updater.cxx +++ b/desktop/source/app/updater.cxx @@ -54,6 +54,10 @@ const char* pSofficeExeName = "soffice.exe"; #error "Need implementation" #endif +OUString normalizePath(const OUString& rPath) +{ + return rPath.replaceAll("//", "/"); +} void CopyFileToDir(const OUString& rTempDirURL, const OUString rFileName, const OUString& rOldDir) { @@ -73,7 +77,7 @@ OUString getPathFromURL(const OUString& rURL) OUString aPath; osl::FileBase::getSystemPathFromFileURL(rURL, aPath); - return aPath; + return normalizePath(aPath); } void CopyUpdaterToTempDir(const OUString& rInstallDirURL, const OUString& rTempDirURL) |