summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-12 13:15:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-09-12 13:16:56 (GMT)
commit9602bcfc62d50d7bb302b02ae3b1f9afe941bae7 (patch)
tree78fa402278479ea4dab743710ac47ba5a7d32e48 /Utilities
parent1a1508c8b840ae016dc8db9da6be4cbe59d5f1aa (diff)
parenta3cfb66543d307e644e4df207f2e1305200ced02 (diff)
downloadCMake-9602bcfc62d50d7bb302b02ae3b1f9afe941bae7.zip
CMake-9602bcfc62d50d7bb302b02ae3b1f9afe941bae7.tar.gz
CMake-9602bcfc62d50d7bb302b02ae3b1f9afe941bae7.tar.bz2
Merge topic 'compile-msvc-permissive-off'
a3cfb66543 Add compatibility with the cl.exe /permissive- compiler option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3803
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/Release/WiX/CustomAction/detect_nsis_overwrite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Utilities/Release/WiX/CustomAction/detect_nsis_overwrite.cpp b/Utilities/Release/WiX/CustomAction/detect_nsis_overwrite.cpp
index 4b17875..593822a 100644
--- a/Utilities/Release/WiX/CustomAction/detect_nsis_overwrite.cpp
+++ b/Utilities/Release/WiX/CustomAction/detect_nsis_overwrite.cpp
@@ -10,7 +10,8 @@ std::wstring get_property(MSIHANDLE msi_handle, std::wstring const& name)
{
DWORD size = 0;
- UINT status = MsiGetPropertyW(msi_handle, name.c_str(), L"", &size);
+ WCHAR value_buffer[] = L"";
+ UINT status = MsiGetPropertyW(msi_handle, name.c_str(), value_buffer, &size);
if (status == ERROR_MORE_DATA) {
std::vector<wchar_t> buffer(size + 1);