dokan-java icon indicating copy to clipboard operation
dokan-java copied to clipboard

Wrong Class used in zwCreateFile

Open infeo opened this issue 5 years ago • 0 comments

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 avatar May 20 '20 18:05 infeo