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

"If successful, this function returns a non-negative number" for UINT #4028

Open
Wallby opened this issue Oct 27, 2024 · 1 comment
Open
Labels
bug Something isn't working Pri3

Comments

@Wallby
Copy link

Wallby commented Oct 27, 2024

Describe the bug
On this page..
https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-getrawinputdeviceinfoa

Also..

If pData is not large enough for the data, the function returns -1.

It seems checking against (UINT)-1 is possible, but that wouldnt be "a non-negative number". Checking the return value against to fail if < 0 wouldn't be correct.

To Reproduce
-

Expected behavior
Not using the word "negative" I think?

Screenshots
-

Desktop (please complete the following information):
Not a device specific issue but one with the content.

Smartphone (please complete the following information):
-

Additional context
-

@Wallby Wallby added the bug Something isn't working label Oct 27, 2024
@gewarren
Copy link
Member

FYI @drewbatgit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Pri3
Projects
None yet
Development

No branches or pull requests

2 participants