mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-29 10:39:28 -05:00
Add compatibility with the cl.exe /permissive- compiler option
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user