From c49208b861c1c6dd52c43a57d3592c2c4ae00f59 Mon Sep 17 00:00:00 2001 From: kichik Date: Mon, 24 Nov 2003 13:29:40 +0000 Subject: [PATCH] Fixed bug #846723 - SetOutPath doesn't work with root directories git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3193 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/exehead/exec.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index cce19002..50213d4f 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -229,12 +229,10 @@ static int NSISCALL ExecuteEntry(entry *entry_) char *buf1=GetStringFromParm(-0x10); log_printf3("CreateDirectory: \"%s\" (%d)",buf1,parm1); { - char *p=buf1; - char c='c'; - if (*p) { - p = skip_root(buf1); - if (!p) - break; + char *p = skip_root(buf1); + char c = 'c'; + if (*buf1 && p) + { while (c) { WIN32_FIND_DATA *fd;