reshade
reshade copied to clipboard
Handle pid 0 case for register_window function
Added a check for zero process ID and make a warning instead directly giving up.
In what case did you experience a PID of zero occuring here?
In what case did you experience a PID of zero occuring here?
mw:19 with iw8-mod installed.
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?