Skip to content

Commit

Permalink
code consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich authored Nov 16, 2023
1 parent d2b6138 commit 554d74c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 554d74c

Please sign in to comment.