sys, dll: ea testing

This commit is contained in:
Bill Zissimopoulos
2019-03-15 11:21:11 -07:00
parent d3efdd9219
commit 9fd491fa3d
3 changed files with 27 additions and 3 deletions

View File

@ -1807,7 +1807,7 @@ FSP_API NTSTATUS FspFileSystemEnumerateEa(FSP_FILE_SYSTEM *FileSystem,
{
NTSTATUS Result = STATUS_SUCCESS;
for (PFILE_FULL_EA_INFORMATION EaEnd = (PVOID)((PUINT8)Ea + EaLength);
EaEnd > Ea; FSP_NEXT_EA(Ea, EaEnd))
EaEnd > Ea; Ea = FSP_NEXT_EA(Ea, EaEnd))
{
Result = EnumerateEa(FileSystem, Context, Ea);
if (!NT_SUCCESS(Result))

View File

@ -306,7 +306,7 @@ static NTSTATUS FspFsvolCreateNoLock(
if (0 != EaBuffer)
{
/* does the file system support EA? */
if (FsvolDeviceExtension->VolumeParams.ExtendedAttributes)
if (!FsvolDeviceExtension->VolumeParams.ExtendedAttributes)
return STATUS_EAS_NOT_SUPPORTED;
/* do we need EA knowledge? */