mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[Build]Fix building on Visual Studio 17.8 (#29303)
* Add definition to ignore deprecated stdext checked_array_iterator * Disable warning to ignore direct mention of dll in C# headers * Fix PowerAccent Keyboard Service build errors * Remove unused event variables * Fix uninitialized events * Remove unused telemetry events * Fix building ShortcutGuide * Fix C-style casts * Fix spellcheck
This commit is contained in:
@@ -46,8 +46,7 @@ class PowerAccent : public PowertoyModuleIface
|
||||
|
||||
private:
|
||||
bool m_enabled = false;
|
||||
HANDLE m_hInvokeEvent;
|
||||
PROCESS_INFORMATION p_info;
|
||||
PROCESS_INFORMATION p_info = {};
|
||||
|
||||
bool is_process_running()
|
||||
{
|
||||
@@ -135,7 +134,6 @@ public:
|
||||
|
||||
virtual void enable()
|
||||
{
|
||||
ResetEvent(m_hInvokeEvent);
|
||||
launch_process();
|
||||
m_enabled = true;
|
||||
Trace::EnablePowerAccent(true);
|
||||
@@ -146,7 +144,6 @@ public:
|
||||
if (m_enabled)
|
||||
{
|
||||
Logger::trace(L"Disabling QuickAccent... {}", m_enabled);
|
||||
ResetEvent(m_hInvokeEvent);
|
||||
|
||||
auto exitEvent = CreateEvent(nullptr, false, false, CommonSharedConstants::POWERACCENT_EXIT_EVENT);
|
||||
if (!exitEvent)
|
||||
|
||||
Reference in New Issue
Block a user