mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-14 05:09:40 +00:00
Don't lose the last file in top-level directories
The filesystem callback was failing to account for the additional menu item to return to the filesystem list, and so the last file entry in the root directory would be missing from the list.
This commit is contained in:
parent
cfa77df48e
commit
fcb7401ed6
@ -857,7 +857,6 @@ static UINTN filesystem_callback (void *data, void *data2) {
|
||||
UINTN dircount = 0, i = 0;
|
||||
struct menu_item *dircontent;
|
||||
EFI_FILE *root = data;
|
||||
EFI_FILE *parent = data2;
|
||||
|
||||
uefi_call_wrapper(root->SetPosition, 2, root, 0);
|
||||
|
||||
@ -887,8 +886,7 @@ static UINTN filesystem_callback (void *data, void *data2) {
|
||||
buffersize = 0;
|
||||
}
|
||||
|
||||
if (parent)
|
||||
dircount++;
|
||||
dircount++;
|
||||
|
||||
dircontent = AllocatePool(sizeof(struct menu_item) * dircount);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user