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

Wrong value for INVALID_FILE_ATTRIBUTES? #369

Closed
Moe2912 opened this issue Jan 21, 2023 · 0 comments
Closed

Wrong value for INVALID_FILE_ATTRIBUTES? #369

Moe2912 opened this issue Jan 21, 2023 · 0 comments

Comments

@Moe2912
Copy link

Moe2912 commented Jan 21, 2023

In FileApi.cs the constant INVALID_FILE_ATTRIBUTES is defined as -2 but I think it has to be -1 instead. Addionally it would be great, if the value would be defined like the constant INVALID_SET_FILE_POINTER as unchecked((uint)-1) so it could be compared to the result of the method GetFileAttributes without the need to cast it.

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

No branches or pull requests

2 participants