summaryrefslogtreecommitdiff
path: root/Help/guide/tutorial/Step2/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-26 11:10:40 -0400
committerBrad King <brad.king@kitware.com>2022-10-26 11:12:46 -0400
commit6eee8c9000cff8d5a5051b1bad28e611bc93db2d (patch)
tree1682d8a4ff0020f49b3cfa25fec9463be46928bd /Help/guide/tutorial/Step2/MathFunctions/MathFunctions.h
parent85191f65d26a6973f16db0e6dbcb91b23cfa6fcc (diff)
downloadcmake-6eee8c9000cff8d5a5051b1bad28e611bc93db2d.tar.gz
VS: Fix crash finding vswhere on 32-bit Windows
Since commit f85913fa08 (VS: Add support for enumerating VS instances with vswhere, 2022-04-11, v3.24.0-rc1~282^2), if the COM lookup does not report any VS instances, we fall back to finding vswhere. However, the `getenv` call returns nullptr if the `ProgramFiles(x86)` environment variable is not set. Update the logic to tolerate not-set environment variables. Also check the plain `ProgramFiles` environment variable. Fixes: #24090
Diffstat (limited to 'Help/guide/tutorial/Step2/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions