Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

"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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working Pri3
Projects
None yet
Development

No branches or pull requests

2 participants