From 554d74cfdec6da64ca124ca278652cfb4f1abc77 Mon Sep 17 00:00:00 2001 From: oberrich <6305520+oberrich@users.noreply.github.com> Date: Thu, 16 Nov 2023 17:50:10 +0100 Subject: [PATCH] code consistency --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index c9db3eb..09beccb 100644 --- a/main.cpp +++ b/main.cpp @@ -336,7 +336,7 @@ int main() try if (!enable_privilege(SE_DEBUG_NAME)) throw std::runtime_error(std::format("Failed to enable '{}', make sure you are running as admin.", SE_DEBUG_NAME)); - DWORD dwm_pid = 0u; + DWORD dwm_pid{}; for (auto first_attempt_at = clock::now(); clock::now() - first_attempt_at < 5s; std::this_thread::sleep_for(250ms)) { if (auto const dwm_hwnd = FindWindowA("Dwm", nullptr); dwm_hwnd && GetWindowThreadProcessId(dwm_hwnd, &dwm_pid))