This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Description
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
-