From 71ee795bbb8f1e0b5d591f76de3de6132b30d77b Mon Sep 17 00:00:00 2001 From: tpoole Date: Thu, 29 Jun 2017 17:40:03 +0100 Subject: [PATCH] Projucer: Fixed null-terminated string array bug --- .../Source/Project Saving/jucer_ProjectExport_MSVC.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h index d16f7162fb..1d75fc7c2f 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExport_MSVC.h @@ -80,7 +80,7 @@ public: props.add (new ChoicePropertyComponent (getIPPLibraryValue(), "Use IPP Library", StringArray (ippOptions, numElementsInArray (ippValues)), - Array (ippValues, numElementsInArray (ippValues)))); + Array (ippValues, numElementsInArray (ippValues)))); } void addCppStandardProperty (PropertyListBuilder& props, const char** names, const var* values, int num) @@ -92,10 +92,11 @@ public: void addWindowsTargetPlatformProperties (PropertyListBuilder& props) { static const char* targetPlatformNames[] = { "(default)", "8.1", "10.0.10240.0", "10.0.10586.0", "10.0.14393.0", "10.0.15063.0" }; - const var targetPlatforms[] = { var(), "8.1", "10.0.10240.0", "10.0.10586.0", "10.0.14393.0", "10.0.15063.0" }; + static const var targetPlatforms[] = { var(), "8.1", "10.0.10240.0", "10.0.10586.0", "10.0.14393.0", "10.0.15063.0" }; props.add (new ChoicePropertyComponent (getWindowsTargetPlatformVersionValue(), "Windows Target Platform", - StringArray (targetPlatformNames), Array (targetPlatforms, numElementsInArray (targetPlatforms))), + StringArray (targetPlatformNames, numElementsInArray (targetPlatformNames)), + Array (targetPlatforms, numElementsInArray (targetPlatforms))), "Specifies the version of the Windows SDK that will be used when building this project. " "The default value for this exporter is " + getDefaultWindowsTargetPlatformVersion()); }