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

LISTBOX_INVALID value required #1092

Open
xezon opened this issue Feb 8, 2024 · 0 comments
Open

LISTBOX_INVALID value required #1092

xezon opened this issue Feb 8, 2024 · 0 comments

Comments

@xezon
Copy link
Contributor

xezon commented Feb 8, 2024

There is this:

enum
{
    LISTBOX_TEXT = 1,
    LISTBOX_IMAGE = 2,
};

I think we should also add

LISTBOX_INVALID = 0

Reason being, 0 is reserved for list box tests when it is memset to 0. If anyone tried to add a new list box type at 0, it would not work correctly. 0 is treated as invalid type.

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

No branches or pull requests

1 participant