mirror of
https://github.com/edera-dev/sprout.git
synced 2025-12-19 21:20:17 +00:00
fix(shim): retain the protocol if the shim is loaded at all
This commit is contained in:
@@ -237,8 +237,13 @@ impl ShimSupport {
|
||||
if !installed {
|
||||
bail!("unable to install security hook require for this platform");
|
||||
}
|
||||
// Retain the shim protocol after load.
|
||||
Self::retain()?
|
||||
}
|
||||
|
||||
// If the shim is loaded, we will need to retain the shim protocol to allow
|
||||
// loading multiple images.
|
||||
if shim_loaded {
|
||||
// Retain the shim protocol after loading the image.
|
||||
Self::retain()?;
|
||||
}
|
||||
|
||||
// Converts the shim input to an owned data buffer.
|
||||
|
||||
Reference in New Issue
Block a user