]> code.delx.au - refind/blobdiff - refind/lib.c
PRELIMINARY workaround for Shim 0.8 bug.
[refind] / refind / lib.c
index 40c1814791f7dbae2580d3905159e6c378d76aa8..6bf2d5d2dc96c3d709818626cf33c288b880b7d7 100644 (file)
@@ -193,6 +193,7 @@ EFI_STATUS InitRefitLib(IN EFI_HANDLE ImageHandle)
 
     // find the current directory
     DevicePathAsString = DevicePathToStr(SelfLoadedImage->FilePath);
+    GlobalConfig.SelfDevicePath = FileDevicePath(SelfLoadedImage->DeviceHandle, DevicePathAsString);
     CleanUpPathNameSlashes(DevicePathAsString);
     MyFreePool(SelfDirPath);
     Temp = FindPath(DevicePathAsString);