Skip to content

Why is GENERC_WRITE flag set like this in dokan.c ? #1285

@lymGitHub0123

Description

@lymGitHub0123

in dokan.c,i find:
if ((*outDesiredAccess & FILE_GENERIC_WRITE)== FILE_GENERIC_WRITE) {
*outDesiredAccess |= GENERIC_WRITE;
genericWrite = TRUE;
}

Why not use "if ((*outDesiredAccess & FILE_GENERIC_WRITE) !=0) " ?

For example, if I only use "FILE_WRITE_DATA", outDesiredAccess will not be set GENERIC_WRITE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions