Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.
This repository was 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

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
-

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri3bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions