fixed bug #1851273 - relative path Delete doesn't work

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5395 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2007-12-15 12:24:07 +00:00
parent 0734725a3e
commit 916d3ea3a2

View file

@ -139,7 +139,9 @@ void NSISCALL myDelete(char *buf, int flags)
#endif//NSIS_SUPPORT_RMDIR
trimslashtoend(buf);
mystrcat(buf,"\\");
// only append backslash if the path isn't relative to the working directory [bug #1851273]
if (*buf)
mystrcat(buf,"\\");
fn=buf+mystrlen(buf);