mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-11 12:55:34 +00:00
Handle slightly stranger device paths
This commit is contained in:
parent
bc6aaefa2d
commit
00ced0c125
3
shim.c
3
shim.c
@ -707,6 +707,9 @@ static EFI_STATUS generate_path(EFI_LOADED_IMAGE *li, EFI_DEVICE_PATH **grubpath
|
|||||||
|
|
||||||
bootpath[i+1] = '\0';
|
bootpath[i+1] = '\0';
|
||||||
|
|
||||||
|
if (bootpath[i-i] == '\\')
|
||||||
|
bootpath[i] = '\0';
|
||||||
|
|
||||||
*PathName = AllocatePool(StrSize(bootpath) + StrSize(SECOND_STAGE));
|
*PathName = AllocatePool(StrSize(bootpath) + StrSize(SECOND_STAGE));
|
||||||
|
|
||||||
if (!*PathName) {
|
if (!*PathName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user