From 705a1eb6613037abc9532bcf471b04453f1d7814 Mon Sep 17 00:00:00 2001
From: Awawa <69086569+awawa-dev@users.noreply.github.com>
Date: Sun, 5 Jan 2025 22:42:38 +0100
Subject: [PATCH] Windows: fix system sleep & shutdown handling
---
sources/base/AccessManager.cpp | 1 +
sources/db/AuthTable.cpp | 1 +
sources/db/MetaTable.cpp | 1 +
sources/led-drivers/net/DriverNetUdpE131.cpp | 1 +
sources/suspend-handler/SuspendHandlerWindows.cpp | 1 +
5 files changed, 5 insertions(+)
diff --git a/sources/base/AccessManager.cpp b/sources/base/AccessManager.cpp
index 344882557..022ad939c 100644
--- a/sources/base/AccessManager.cpp
+++ b/sources/base/AccessManager.cpp
@@ -6,6 +6,7 @@
#include
#include
#include
+#include
using namespace hyperhdr;
diff --git a/sources/db/AuthTable.cpp b/sources/db/AuthTable.cpp
index 8fe5281af..77fd7278d 100644
--- a/sources/db/AuthTable.cpp
+++ b/sources/db/AuthTable.cpp
@@ -1,4 +1,5 @@
#include
+#include
#include
using namespace hyperhdr;
diff --git a/sources/db/MetaTable.cpp b/sources/db/MetaTable.cpp
index 4be49be1c..ba7259eaa 100644
--- a/sources/db/MetaTable.cpp
+++ b/sources/db/MetaTable.cpp
@@ -1,5 +1,6 @@
#include
#include
+#include
#include
diff --git a/sources/led-drivers/net/DriverNetUdpE131.cpp b/sources/led-drivers/net/DriverNetUdpE131.cpp
index 3c3e9fa40..6b77b0e3d 100644
--- a/sources/led-drivers/net/DriverNetUdpE131.cpp
+++ b/sources/led-drivers/net/DriverNetUdpE131.cpp
@@ -5,6 +5,7 @@
#endif
#include
+#include
// hyperhdr local includes
#include
diff --git a/sources/suspend-handler/SuspendHandlerWindows.cpp b/sources/suspend-handler/SuspendHandlerWindows.cpp
index c7c27b4f6..d886c6383 100644
--- a/sources/suspend-handler/SuspendHandlerWindows.cpp
+++ b/sources/suspend-handler/SuspendHandlerWindows.cpp
@@ -107,6 +107,7 @@ SuspendHandler::SuspendHandler(bool sessionLocker):
SuspendHandler::~SuspendHandler()
{
+ SystrayAssignQueueHandler(nullptr);
instance = nullptr;
if (_notifyHandle != NULL)