From 00ced0c1259b400ef135e9415d917f908e9a4500 Mon Sep 17 00:00:00 2001 From: Matthew Garrett Date: Fri, 13 Jul 2012 00:30:22 -0400 Subject: [PATCH] Handle slightly stranger device paths --- shim.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shim.c b/shim.c index 39a7f47..fc3dafc 100644 --- a/shim.c +++ b/shim.c @@ -707,6 +707,9 @@ static EFI_STATUS generate_path(EFI_LOADED_IMAGE *li, EFI_DEVICE_PATH **grubpath bootpath[i+1] = '\0'; + if (bootpath[i-i] == '\\') + bootpath[i] = '\0'; + *PathName = AllocatePool(StrSize(bootpath) + StrSize(SECOND_STAGE)); if (!*PathName) {