From 9dc984a059176d1849e0f565b649f504a7e56f01 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 2 Jun 2022 20:49:03 +0200 Subject: [PATCH] Fix window closing --- src/client/component/console.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index 1c43c0fa..7ef5b857 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -46,9 +46,9 @@ namespace console SetBkColor(reinterpret_cast(wparam), RGB(50, 50, 50)); SetTextColor(reinterpret_cast(wparam), RGB(232, 230, 227)); return reinterpret_cast(CreateSolidBrush(RGB(50, 50, 50))); - case WM_QUIT: + case WM_CLOSE: game::Cbuf_AddText(0, "quit\n"); - return DefWindowProcA(hwnd, msg, wparam, lparam); + [[fallthrough]]; default: return utils::hook::invoke(0x142333520_g, hwnd, msg, wparam, lparam); }