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);