Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error in parameter" with negative window handles #94

Open
pjeby opened this issue Jan 2, 2025 · 1 comment
Open

"Error in parameter" with negative window handles #94

pjeby opened this issue Jan 2, 2025 · 1 comment

Comments

@pjeby
Copy link

pjeby commented Jan 2, 2025

Although /LWOD is listing negative window handles like -925692446, passing that handle into e.g. /GDFWH: does not work: it says "Error in parameter" instead. Converting the negative number to its two's complement (3369274850) doesn't work either, presumably because it overflows the int32 type being used. I'm guessing it also might just be that the code is checking for positive numbers when it'd be equally valid for them to be negative - probably just checking for != 0 instead of >0 would fix it.

@MScholtes
Copy link
Owner

Hello @pjeby,

I thought it could never come to this. How long your Windows is running?

I will check for this and think will resolve in the next release.

Greetings

Markus

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

No branches or pull requests

2 participants