cmake 3.24.2 crashes on Windows x86 without VS
Moving on from CMake version 3.23.2 to 3.24.2 we are facing an issue on Windows x86 machines calling "cmake --version".
We already could trim this down to https://gitlab.kitware.com/cmake/cmake/-/blob/v3.24.2/Source/cmVSSetupHelper.cxx#L308. The environment variable "ProgramFiles(x86)" isn't defined on 32bit Windows and therefore getenv() returns nullptr.
Edited by Brad King