From 70879f0abc582cb01468c2f553b26d37fe883d58 Mon Sep 17 00:00:00 2001
From: Shen-Ta Hsieh <ibmibmibm.tw@gmail.com>
Date: Tue, 30 May 2023 02:16:26 +0800
Subject: [PATCH] thread/WindowsFuture: remove wrong address_of operator

---
 NEWS                         | 2 ++
 src/thread/WindowsFuture.hxx | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index fec18ffb4..feecefca8 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 ver 0.23.14 (not yet released)
 * decoder
   - mad: fix calculation of LAME peak values
+* mixer
+  - wasapi: fix problem setting volume
 
 ver 0.23.13 (2023/05/22)
 * input
diff --git a/src/thread/WindowsFuture.hxx b/src/thread/WindowsFuture.hxx
index e9082a63c..dd2543cf4 100644
--- a/src/thread/WindowsFuture.hxx
+++ b/src/thread/WindowsFuture.hxx
@@ -130,7 +130,7 @@ public:
 
 	void set_value(const T &value) {
 		std::unique_lock<CriticalSection> lock(mutex);
-		if (!std::holds_alternative<std::monostate>(&result)) {
+		if (!std::holds_alternative<std::monostate>(result)) {
 			throw WinFutureError(WinFutureErrc::promise_already_satisfied);
 		}
 		result.template emplace<T>(value);