Skip to content

Commit

Permalink
file_get_position: implement
Browse files Browse the repository at this point in the history
  • Loading branch information
maharmstone committed Mar 29, 2023
1 parent 34c8586 commit 2ed8a56
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ntfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1395,14 +1395,14 @@ static EFI_STATUS EFIAPI file_set_position(struct _EFI_FILE_HANDLE* File, UINT64
}

static EFI_STATUS EFIAPI file_get_position(struct _EFI_FILE_HANDLE* File, UINT64* Position) {
UNUSED(File);
UNUSED(Position);
inode* ino = _CR(File, inode, proto);

systable->ConOut->OutputString(systable->ConOut, (CHAR16*)L"file_get_position\r\n");
if (ino->is_dir)
return EFI_UNSUPPORTED;

// FIXME
*Position = ino->position;

return EFI_UNSUPPORTED;
return EFI_SUCCESS;
}

static EFI_STATUS loop_through_atts(const volume& vol, uint64_t inode, const FILE_RECORD_SEGMENT_HEADER* file_record,
Expand Down

0 comments on commit 2ed8a56

Please sign in to comment.