From 5706ba3d99f6a147499d6a122959ed865e447470 Mon Sep 17 00:00:00 2001
From: SineStriker <55847490+SineStriker@users.noreply.github.com>
Date: 周三, 12 2月 2025 21:23:14 +0800
Subject: [PATCH] Update

---
 src/core/contexts/win32windowcontext.cpp |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/core/contexts/win32windowcontext.cpp b/src/core/contexts/win32windowcontext.cpp
index 3360b9d..00ff1b4 100644
--- a/src/core/contexts/win32windowcontext.cpp
+++ b/src/core/contexts/win32windowcontext.cpp
@@ -916,9 +916,7 @@
         Q_UNUSED(oldAttribute)
 
         const auto hwnd = reinterpret_cast<HWND>(m_windowId);
-        if (!hwnd) {
-            return false;
-        }
+        Q_ASSERT(hwnd);
 
         const DynamicApis &apis = DynamicApis::instance();
         const auto &extendMargins = [this, &apis, hwnd]() {

--
Gitblit v1.9.1