Skip to content
Browse files

Merge pull request #8315 from CookiePLMonster/conformance-fixes

Conformance fixes
  • Loading branch information...
stenzek committed Aug 17, 2019
2 parents 181d792 + e67eb46 commit 0a7265f807dac4cca011120666f76b004b289451
Showing with 5 additions and 5 deletions.
  1. +1 −1 Source/Core/AudioCommon/WASAPIStream.cpp
  2. +1 −1 Source/Core/Common/StringUtil.cpp
  3. +3 −3 Source/VSProps/Base.props
@@ -152,7 +152,7 @@ IMMDevice* WASAPIStream::GetDeviceByName(std::string name)
__uuidof(IMMDeviceEnumerator), reinterpret_cast<LPVOID*>(&enumerator));

if (!HandleWinAPI("Failed to create MMDeviceEnumerator", result))
return false;
return nullptr;

IMMDeviceCollection* devices;
result = enumerator->EnumAudioEndpoints(eRender, DEVICE_STATE_ACTIVE, &devices);
@@ -483,7 +483,7 @@ std::string UTF16ToCP(u32 code_page, std::wstring_view input)

if (size != WideCharToMultiByte(code_page, 0,, static_cast<int>(input.size()),
&output[0], static_cast<int>(output.size()), nullptr, false))
&output[0], static_cast<int>(output.size()), nullptr, nullptr))
const DWORD error_code = GetLastError();
ERROR_LOG(COMMON, "WideCharToMultiByte Error in String '%s': %lu",
@@ -88,9 +88,9 @@
<!--Enable latest C++ standard-->
<!--Enable Standard Conformance-->
<AdditionalOptions>/permissive- %(AdditionalOptions)</AdditionalOptions>
<!--Enforce some behaviors as standards-conformant when they don't default as such-->
<AdditionalOptions>/Zc:inline /Zc:throwingNew /volatile:iso %(AdditionalOptions)</AdditionalOptions>
<AdditionalOptions>/Zc:throwingNew /volatile:iso %(AdditionalOptions)</AdditionalOptions>
<!--Enable detailed debug info-->
<AdditionalOptions>/Zo %(AdditionalOptions)</AdditionalOptions>
<!--Treat sources as utf-8-->
@@ -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
<!-- Warnings one may want to ignore when using Level4.
4201 nonstandard extension used : nameless struct/union
4127 conditional expression is constant

0 comments on commit 0a7265f

Please sign in to comment.
You can’t perform that action at this time.