mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 02:06:36 +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:
@@ -44,9 +44,7 @@ class Awake : public PowertoyModuleIface
|
||||
|
||||
private:
|
||||
bool m_enabled = false;
|
||||
HANDLE send_telemetry_event;
|
||||
HANDLE m_hInvokeEvent;
|
||||
PROCESS_INFORMATION p_info;
|
||||
PROCESS_INFORMATION p_info = {};
|
||||
|
||||
bool is_process_running()
|
||||
{
|
||||
@@ -137,8 +135,6 @@ public:
|
||||
virtual void enable()
|
||||
{
|
||||
Trace::EnableAwake(true);
|
||||
ResetEvent(send_telemetry_event);
|
||||
ResetEvent(m_hInvokeEvent);
|
||||
launch_process();
|
||||
m_enabled = true;
|
||||
};
|
||||
@@ -149,8 +145,6 @@ public:
|
||||
{
|
||||
Trace::EnableAwake(false);
|
||||
Logger::trace(L"Disabling Awake...");
|
||||
ResetEvent(send_telemetry_event);
|
||||
ResetEvent(m_hInvokeEvent);
|
||||
|
||||
auto exitEvent = CreateEvent(nullptr, false, false, CommonSharedConstants::AWAKE_EXIT_EVENT);
|
||||
if (!exitEvent)
|
||||
|
||||
Reference in New Issue
Block a user