diff --git a/source/input.cpp b/source/input.cpp index 6b7e5ba0e..9f1025cc6 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -55,7 +55,12 @@ std::shared_ptr reshade::input::register_window(window_handle wi DWORD process_id = 0; GetWindowThreadProcessId(static_cast(window), &process_id); - if (process_id != GetCurrentProcessId()) + + if (process_id == 0) + { + reshade::log::message(reshade::log::level::warning, "Window %p 's handle is zero. Attempting to handle it's input anyways.", window); + } + else if (process_id != GetCurrentProcessId()) { reshade::log::message(reshade::log::level::warning, "Cannot capture input for window %p created by a different process (%lu).", window, process_id); return nullptr;