From 520f6f1281dfeede3e8ce46417c54747600cda28 Mon Sep 17 00:00:00 2001 From: kichik Date: Wed, 5 Jan 2005 12:37:55 +0000 Subject: [PATCH] fixed bug #1096104 - File /r under unix creates incorrect dirs git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3836 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/script.cpp b/Source/script.cpp index 7f32ed0a..eac11744 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -5935,6 +5935,14 @@ int CEXEBuild::do_add_file_create_dir(const string& local_dir, const string& dir pos = outdir_s.find('$', pos + 2); } +#ifndef _WIN32 + pos = outdir_s.find('/'); + while (pos != string::npos) { + outdir_s[pos] = '\\'; + pos = outdir_s.find('/'); + } +#endif + int outdir = add_string(outdir_s.c_str()); if (add_entry_direct(EW_CREATEDIR, outdir, 1) != PS_OK) {