mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
OcAppleKernelLib: Fix kext bundle version copying, thanks @mhaeuser
This commit is contained in:
parent
a64adfef26
commit
b06c6b3fcb
@ -960,7 +960,7 @@ CachelessContextAddKext (
|
||||
}
|
||||
|
||||
BundleVerStr = XmlNodeContent (InfoPlistValue);
|
||||
AsciiStrnCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr, AsciiStrLen (BundleVerStr));
|
||||
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr);
|
||||
}
|
||||
|
||||
DEBUG_CODE_END ();
|
||||
|
||||
@ -1285,7 +1285,7 @@ MkextInjectKext (
|
||||
}
|
||||
|
||||
BundleVerStr = XmlNodeContent (KextPlistValue);
|
||||
AsciiStrnCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr, AsciiStrLen (BundleVerStr));
|
||||
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1099,7 +1099,7 @@ PrelinkedInjectKext (
|
||||
}
|
||||
|
||||
BundleVerStr = XmlNodeContent (KextPlistValue);
|
||||
AsciiStrnCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr, AsciiStrLen (BundleVerStr));
|
||||
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, BundleVerStr);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -724,7 +724,7 @@ WrapMain (
|
||||
// Assume no bundle version from the beginning.
|
||||
// 'v' will be printed in the message, and hence is omitted here.
|
||||
//
|
||||
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion available");
|
||||
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion unavailable");
|
||||
Status = PrelinkedInjectKext (
|
||||
&Context,
|
||||
NULL,
|
||||
@ -786,7 +786,7 @@ WrapMain (
|
||||
// Assume no bundle version from the beginning.
|
||||
// 'v' will be printed in the message, and hence is omitted here.
|
||||
//
|
||||
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion available");
|
||||
AsciiStrCpyS (BundleVersion, MAX_INFO_BUNDLE_VERSION_KEY_SIZE, "ersion unavailable");
|
||||
Status = PrelinkedInjectKext (
|
||||
&Context,
|
||||
NULL,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user