From a0b6163f51f852ea75cf7b616aebcb53bdca28b8 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 30 Sep 2004 22:46:33 +0000 Subject: [PATCH] dir in do_add_files can be "." on windows too git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3685 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/script.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/script.cpp b/Source/script.cpp index fd4f3b78..c0b9545a 100644 --- a/Source/script.cpp +++ b/Source/script.cpp @@ -5881,15 +5881,12 @@ int CEXEBuild::do_add_file(const char *lgss, int attrib, int recurse, int linecn WIN32_FIND_DATA temp; #endif -#ifdef _WIN32 - const char *fspec=lgss+strlen(dir)+!!dir[0]; -#else const char *fspec; if (!strcmp(dir,".") && strncmp(lgss,".",1)) fspec=lgss; else fspec=lgss+strlen(dir)+!!dir[0]; -#endif + strcpy(newfn,lgss); #ifdef _WIN32 DWORD a=GetFileAttributes(lgss);