summaryrefslogtreecommitdiffstats
path: root/Utilities/Release
diff options
context:
space:
mode:
authorAlexej Harm <alexej.h@xiphos.de>2019-09-11 13:26:20 (GMT)
committerAlexej Harm <alexej.h@xiphos.de>2019-09-11 13:26:20 (GMT)
commita3cfb66543d307e644e4df207f2e1305200ced02 (patch)
treeb4e39e681b8e1e11d88e49a01637910f1a826bf0 /Utilities/Release
parent7f46e4a73a4d7aaa4029a04c532d2c99635383b9 (diff)
downloadCMake-a3cfb66543d307e644e4df207f2e1305200ced02.zip
CMake-a3cfb66543d307e644e4df207f2e1305200ced02.tar.gz
CMake-a3cfb66543d307e644e4df207f2e1305200ced02.tar.bz2
Add compatibility with the cl.exe /permissive- compiler option
Diffstat (limited to 'Utilities/Release')
-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);