Skip to content

Handle pid 0 case for register_window function - #398

Open
tdlbugreport wants to merge 1 commit into
crosire:mainfrom
tdlbugreport:main
Open

Handle pid 0 case for register_window function#398
tdlbugreport wants to merge 1 commit into
crosire:mainfrom
tdlbugreport:main

Conversation

@tdlbugreport

Copy link
Copy Markdown

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

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

crosire commented Nov 8, 2025

Copy link
Copy Markdown
Owner

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

@tdlbugreport

tdlbugreport commented Nov 8, 2025

Copy link
Copy Markdown
Author

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

mw:19 with iw8-mod installed.

@crosire

crosire commented Nov 9, 2025

Copy link
Copy Markdown
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants