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 Class used in zwCreateFile #38

Open
infeo opened this issue May 20, 2020 · 0 comments
Open

Wrong Class used in zwCreateFile #38

infeo opened this issue May 20, 2020 · 0 comments
Labels
Milestone

Comments

@infeo
Copy link
Member

infeo commented May 20, 2020

The zwCreateFile method contains the parameter securityContext with the type WinBase.SECURITY_ATTRIBUTES.

Looking at the Dokany docs, this is the wrong type and if one looks into the dokan.h, a strucutre called PDOKAN_IO_SECURITY_CONTEXTis returned.
https://github.com/dokan-dev/dokany/blob/181a6bd5a50f60aa0f1e96cd218bc5ef70308b4b/dokan/dokan.h#L249

It is a structure of the sys module with the definition:

typedef struct _DOKAN_IO_SECURITY_CONTEXT {
  DOKAN_ACCESS_STATE AccessState;
  ACCESS_MASK DesiredAccess;
} DOKAN_IO_SECURITY_CONTEXT, *PDOKAN_IO_SECURITY_CONTEXT;

This type mus be implemented to correctly accessing this parameter.

@infeo infeo added the bug label May 20, 2020
@infeo infeo added this to the 2.0 milestone May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant