diff --git a/Source/Core/AudioCommon/WASAPIStream.cpp b/Source/Core/AudioCommon/WASAPIStream.cpp index dd83ddb657..483a68f7af 100644 --- a/Source/Core/AudioCommon/WASAPIStream.cpp +++ b/Source/Core/AudioCommon/WASAPIStream.cpp @@ -152,7 +152,7 @@ IMMDevice* WASAPIStream::GetDeviceByName(std::string name) __uuidof(IMMDeviceEnumerator), reinterpret_cast(&enumerator)); if (!HandleWinAPI("Failed to create MMDeviceEnumerator", result)) - return false; + return nullptr; IMMDeviceCollection* devices; result = enumerator->EnumAudioEndpoints(eRender, DEVICE_STATE_ACTIVE, &devices); diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index c85e4ae227..7955c81fdf 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -483,7 +483,7 @@ std::string UTF16ToCP(u32 code_page, std::wstring_view input) output.resize(size); if (size != WideCharToMultiByte(code_page, 0, input.data(), static_cast(input.size()), - &output[0], static_cast(output.size()), nullptr, false)) + &output[0], static_cast(output.size()), nullptr, nullptr)) { const DWORD error_code = GetLastError(); ERROR_LOG(COMMON, "WideCharToMultiByte Error in String '%s': %lu", diff --git a/Source/VSProps/Base.props b/Source/VSProps/Base.props index 16699d9e72..9fdc6aff9c 100644 --- a/Source/VSProps/Base.props +++ b/Source/VSProps/Base.props @@ -88,9 +88,9 @@ stdcpplatest - /permissive- %(AdditionalOptions) + true - /Zc:inline /Zc:throwingNew /volatile:iso %(AdditionalOptions) + /Zc:throwingNew /volatile:iso %(AdditionalOptions) /Zo %(AdditionalOptions) @@ -103,7 +103,7 @@ seem to be a way to only ignore the specific instance we don't care about... 4351 new behavior: elements of array 'array' will be default initialized --> - 4996;4351 + 4996;4351;%(DisableSpecificWarnings)