mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
Add compatibility with the cl.exe /permissive- compiler option
This commit is contained in:
@@ -61,7 +61,7 @@ public:
|
||||
cmBasicUVStreambuf* close();
|
||||
|
||||
protected:
|
||||
typename cmBasicUVStreambuf::int_type underflow() override;
|
||||
typename cmBasicUVStreambuf<CharT, Traits>::int_type underflow() override;
|
||||
std::streamsize showmanyc() override;
|
||||
|
||||
// FIXME: Add write support
|
||||
|
||||
@@ -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