reshade icon indicating copy to clipboard operation
reshade copied to clipboard

Handle pid 0 case for register_window function

Open tdlbugreport opened this issue 1 month ago • 3 comments

Added a check for zero process ID and make a warning instead directly giving up.

tdlbugreport avatar Nov 07 '25 19:11 tdlbugreport

In what case did you experience a PID of zero occuring here?

crosire avatar Nov 08 '25 15:11 crosire

In what case did you experience a PID of zero occuring here?

mw:19 with iw8-mod installed.

tdlbugreport avatar Nov 08 '25 17:11 tdlbugreport

I'd be interested in why it's zero though. Does the GetWindowThreadProcessId call fail (return zero)? What's the error returned by GetLastError() afterwards?

crosire avatar Nov 09 '25 00:11 crosire