Skip to content

Commit

Permalink
Utilities: Correct SetPosition call in TestExt4Dxe
Browse files Browse the repository at this point in the history
  • Loading branch information
savvamitrofanov committed Jan 12, 2023
1 parent b15983a commit 40dfc3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Utilities/TestExt4Dxe/TestExt4Dxe.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,14 @@ TestExt4Dxe (
FileSize = EXT4_INODE_SIZE (File->Inode);
if (FileSize < (UINT64)-1 - 1) {
Position = FileSize + 1;
Ext4SetPosition (NewHandle, Position);
Status = Ext4SetPosition (NewHandle, Position);
if (!EFI_ERROR (Status)) {
Buffer = NULL;
BufferSize = 0;
Status = Ext4ReadFile (NewHandle, &BufferSize, Buffer);

ASSERT (Status == EFI_DEVICE_ERROR);
}
}

Ext4Delete (NewHandle);
Expand Down

0 comments on commit 40dfc3a

Please sign in to comment.