提交 b06c6b3f 编写于 作者: P PMheart

OcAppleKernelLib: Fix kext bundle version copying, thanks @mhaeuser

上级 a64adfef
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册