Handle slightly stranger device paths

This commit is contained in:
Matthew Garrett 2012-07-13 00:30:22 -04:00
parent bc6aaefa2d
commit 00ced0c125

3
shim.c
View File

@ -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) {