sys: ea: return STATUS_EA_CORRUPT_ERROR when appropriate

This commit is contained in:
Bill Zissimopoulos
2019-03-19 11:15:14 -07:00
parent 5c42377c1b
commit 02a650f8d0
3 changed files with 23 additions and 0 deletions

View File

@ -645,6 +645,10 @@ static void ea_check_ea2(HANDLE Handle)
} Ea;
struct ea_check_ea_context Context;
memset(&Context, 0, sizeof Context);
Result = NtQueryEaFile(Handle, &Iosb, &Ea, sizeof Ea, FALSE, 0, 0, 0, FALSE);
ASSERT(STATUS_EA_CORRUPT_ERROR == Result);
memset(&Context, 0, sizeof Context);
Result = NtQueryEaFile(Handle, &Iosb, &Ea, sizeof Ea, FALSE, 0, 0, 0, TRUE);
ASSERT(STATUS_SUCCESS == Result);