From 9bcbddcd837716844dc6ee856c0809888875de89 Mon Sep 17 00:00:00 2001 From: kichik Date: Thu, 19 Apr 2007 20:40:34 +0000 Subject: [PATCH] don't pre-process "ProgramFilesDir" and "CommonFilesDir" as they are not processed in GetNSISString git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5103 212acab6-be3b-0410-9dea-997c60f758d6 --- Source/build.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/build.cpp b/Source/build.cpp index c7a19ba2..b89e7b93 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -337,7 +337,7 @@ CEXEBuild::CEXEBuild() : m_ShellConstants.add("RESOURCES_LOCALIZED", CSIDL_RESOURCES_LOCALIZED, CSIDL_RESOURCES_LOCALIZED); m_ShellConstants.add("CDBURN_AREA", CSIDL_CDBURN_AREA, CSIDL_CDBURN_AREA); - unsigned int program_files = add_string("ProgramFilesDir"); + unsigned int program_files = add_string("ProgramFilesDir", 0); unsigned int program_files_def = add_string("C:\\Program Files"); if ((program_files >= 0x40) || (program_files_def >= 0xFF)) @@ -352,7 +352,7 @@ CEXEBuild::CEXEBuild() : m_ShellConstants.add("PROGRAMFILES32", 0x80 | program_files, program_files_def); m_ShellConstants.add("PROGRAMFILES64", 0xC0 | program_files, program_files_def); - unsigned int common_files = add_string("CommonFilesDir"); + unsigned int common_files = add_string("CommonFilesDir", 0); unsigned int common_files_def = add_string("$PROGRAMFILES\\Common Files"); if ((common_files > 0x40) || (common_files_def > 0xFF))