Close directory after reading module file
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 26s
Builds / ExectOS (i686) (push) Successful in 28s

This commit is contained in:
Rafal Kupiec 2024-01-05 23:24:13 +01:00
parent 3fee69cbdf
commit 2864fdd790
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -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 */