Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion source/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ std::shared_ptr<reshade::input> reshade::input::register_window(window_handle wi

DWORD process_id = 0;
GetWindowThreadProcessId(static_cast<HWND>(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;
Expand Down