-
Notifications
You must be signed in to change notification settings - Fork 673
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
Reason for different handling of booleans #907
Comments
@JaniruTEC Hi, Yes, that only dokan history reason. Also DOKAN_ACCESS_STATE is based on ACCESS_STATE that use BOOLEAN. |
Hey, @Liryna. Thanks for your quick answer. Reviewing this would be highly appreciated from the wrapper-projects, I guess. |
I do not have an exact idea for now how it needs to look like. There is a ticket open for delete on close that have some good chance to affect it. So better to resolve this one and have a better view before changing it. |
Windows headers: With Userland could have used |
I was looking at the definitions of _DOKAN_FILE_INFO and _DOKAN_ACCESS_STATE in order to fix dokan-dev/dokan-java#46 for the dokan-java project. The defintions are linked below:
dokany/dokan/dokan.h
Lines 155 to 185 in 1694ff1
dokany/sys/public.h
Lines 181 to 193 in 1694ff1
I noticed that the definitions use different types to store boolean values. _DOKAN_FILE_INFO uses WCHARs/bytes and compares against 0 to determine if the flag is set; _DOKAN_ACCESS_STATE uses BOOLEANs.
Is this intentional or just a matter of Dokany's history? Does it have to do something with the sys/user-layer?
The text was updated successfully, but these errors were encountered: