summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Garrett <mjg@redhat.com>2012-07-13 00:30:22 -0400
committerMatthew Garrett <mjg@redhat.com>2012-07-13 00:30:22 -0400
commit00ced0c1259b400ef135e9415d917f908e9a4500 (patch)
tree88a5026dd50852b4dde10eac05b1f25ec7dec714
parentbc6aaefa2d86017868087790a42cf31f96d3ec93 (diff)
downloadefi-boot-shim-00ced0c1259b400ef135e9415d917f908e9a4500.tar.gz
efi-boot-shim-00ced0c1259b400ef135e9415d917f908e9a4500.zip
Handle slightly stranger device paths
-rw-r--r--shim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shim.c b/shim.c
index 39a7f478..fc3dafc3 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) {