diff options
Diffstat (limited to 'Application')
-rw-r--r-- | Application/Loader/Loader.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Application/Loader/Loader.c b/Application/Loader/Loader.c index 8f1132e..9d40b3c 100644 --- a/Application/Loader/Loader.c +++ b/Application/Loader/Loader.c @@ -195,7 +195,8 @@ LocateFile( EFI_FILE_READ_ONLY); if (!EFI_ERROR(Status)) { - VolumeHandle->Close(FileHandle); + FileHandle->Close(FileHandle); + VolumeHandle->Close(VolumeHandle); *DevicePath = FileDevicePath(Handles[i], ImagePath); CHAR16 *PathString = ConvertDevicePathToText(*DevicePath, TRUE, TRUE); DEBUG((DEBUG_INFO, "[LOADER] Found file at %S.\r\n", PathString)); @@ -203,6 +204,7 @@ LocateFile( FreePool(PathString); break; } + VolumeHandle->Close(VolumeHandle); } FreePool(Handles); |