Fix backward vs. forward slashes on Windows

Change-Id: I24771a526848901ccedb15aa5dd7b373fe854977
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160765
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
(cherry picked from commit 58bfd8f982950566018f77ce8895963d914058f8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160801
diff --git a/desktop/source/app/updater.cxx b/desktop/source/app/updater.cxx
index fa38365..8796583 100644
--- a/desktop/source/app/updater.cxx
+++ b/desktop/source/app/updater.cxx
@@ -86,7 +86,12 @@ const char* pSofficeExeName = "soffice.exe";

OUString normalizePath(const OUString& rPath)
{
    OUString aPath =  rPath.replaceAll("//", "/");
    OUString aPath =  rPath;
#if defined WNT
    aPath = aPath.replace('\\', '/');
#endif

    aPath.replaceAll("//", "/");

    // remove final /
    if (aPath.endsWith("/"))
@@ -108,7 +113,10 @@ OUString normalizePath(const OUString& rPath)
        aPath = aTempPath.copy(0, i) + aPath.copy(nIndex + 3);
    }

    return aPath.replaceAll("\\", "/");
#if defined WNT
    aPath = aPath.replace('/', '\\');
#endif
    return aPath;
}

void CopyFileToDir(const OUString& rTempDirURL, const OUString & rFileName, const OUString& rOldDir)