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
This commit is contained in:
parent
b65e514035
commit
520f6f1281
1 changed files with 8 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue