未验证 提交 de441776 编写于 作者: S Steve Zheng 提交者: GitHub

Utilities: Add status check for OcConfigurationInit in ocvalidate, return -1 if it fails (#116)

上级 f35b3806
......@@ -54,7 +54,13 @@ int main(int argc, char** argv) {
long long a = current_timestamp();
OC_GLOBAL_CONFIG Config;
OcConfigurationInit (&Config, b, f);
EFI_STATUS Status;
Status = OcConfigurationInit (&Config, b, f);
if (Status != EFI_SUCCESS) {
printf("Invalid config\n");
return -1;
}
DEBUG ((DEBUG_ERROR, "Done checking %a in %llu ms\n", argc > 1 ? argv[1] : "./config.plist", current_timestamp() - a));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册