mirror of
https://github.com/reactos/CMake.git
synced 2025-01-19 09:54:02 +00:00
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
This commit is contained in:
commit
9602bcfc62
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user