Close directory after reading module file
This commit is contained in:
parent
3fee69cbdf
commit
2864fdd790
@ -145,8 +145,9 @@ BlLoadModule(IN PWCHAR ModuleName)
|
||||
return Status;
|
||||
}
|
||||
|
||||
/* Read module file from disk and close EFI volume */
|
||||
/* Read module file from disk and close directory and EFI volume */
|
||||
Status = BlReadFile(DirHandle, ModuleFileName, &ModuleData, &ModuleSize);
|
||||
DirHandle->Close(DirHandle);
|
||||
BlCloseVolume(DiskHandle);
|
||||
|
||||
/* Make sure module file was read successfully */
|
||||
|
Loading…
Reference in New Issue
Block a user