From 9676bb54cdf9911cdd704f967c437a6d3a59a943 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 22 Dec 2007 16:20:06 +0000 Subject: [PATCH] a empty string can be caused by a path like "\boot.ini", so support that as well git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5439 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/exehead/util.c b/Source/exehead/util.c index 5caf8771..80e18c11 100644 --- a/Source/exehead/util.c +++ b/Source/exehead/util.c @@ -140,7 +140,7 @@ void NSISCALL myDelete(char *buf, int flags) trimslashtoend(buf); // only append backslash if the path isn't relative to the working directory [bug #1851273] - if (*buf) + if (*buf || *lbuf == '\\') mystrcat(buf,"\\"); fn=buf+mystrlen(buf);