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.
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.