[CI] Fix for building with Visual Studio 17.6 (#25759)

* Disable building Stl Modules

* [FindMyMouse] Fix C26495 errors
This commit is contained in:
Jeremy Sinclair 2023-05-02 06:56:55 -04:00 committed by GitHub
parent b0e7904027
commit 0aeab56a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -53,6 +53,7 @@
<ConformanceMode>false</ConformanceMode>
<TreatWarningAsError>true</TreatWarningAsError>
<LanguageStandard>stdcpplatest</LanguageStandard>
<BuildStlModules>false</BuildStlModules>
<AdditionalOptions>/await %(AdditionalOptions)</AdditionalOptions>
<PreprocessorDefinitions>_UNICODE;UNICODE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>

View File

@ -54,7 +54,7 @@ protected:
D* Shim() { return static_cast<D*>(this); }
LRESULT BaseWndProc(UINT message, WPARAM wParam, LPARAM lParam) noexcept;
HWND m_hwnd;
HWND m_hwnd{};
POINT m_sonarPos = ptNowhere;
// Only consider double left control click if at least 100ms passed between the clicks, to avoid keyboards that might be sending rapid clicks.
@ -118,7 +118,7 @@ private:
ControlUp2,
};
HWND m_hwndOwner;
HWND m_hwndOwner{};
SonarState m_sonarState = SonarState::Idle;
POINT m_lastKeyPos{};
ULONGLONG m_lastKeyTime{};