From 4f5b7db24c51373ef00e07204cc9d76d3750e0c6 Mon Sep 17 00:00:00 2001 From: quaK <38787176+Joelrau@users.noreply.github.com> Date: Sat, 4 Jun 2022 00:48:43 +0300 Subject: [PATCH] small changes --- src/client/component/console.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/client/component/console.cpp b/src/client/component/console.cpp index fefa2d3d..3ad8eee8 100644 --- a/src/client/component/console.cpp +++ b/src/client/component/console.cpp @@ -31,8 +31,8 @@ namespace console return nativeconsole; } - static bool ingame = false; - static bool exit = false; + static volatile bool ingame = false; + static volatile bool exit = false; DWORD WINAPI console(LPVOID) { @@ -203,7 +203,7 @@ namespace console } break; case WM_CHAR: - auto key = wparam; + const auto key = wparam; // enter the line if (key == VK_RETURN) @@ -211,7 +211,7 @@ namespace console memset(dest, 0, sizeof(dest)); memset(s_wcd.consoleText, 0, sizeof(s_wcd.consoleText)); - auto length = GetWindowTextA(s_wcd.hwndInputLine, s_wcd.consoleText, sizeof(s_wcd.consoleText)); + const auto length = GetWindowTextA(s_wcd.hwndInputLine, s_wcd.consoleText, sizeof(s_wcd.consoleText)); if (length) { sprintf_s(dest, sizeof(s_wcd.consoleText), "]%s\n", s_wcd.consoleText);