CI: fix build

This commit is contained in:
李通洲
2024-01-06 17:07:36 +08:00
parent 1621484c96
commit de91429e1a
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ const char* getProductNameWithIokit(FFstrbuf* result)
if (!productName)
return "IORegistryEntryCreateCFProperty() failed";
return ffCfStrGetString(name, result);
return ffCfStrGetString(productName, result);
}
const char* getOthersByIokit(FFHostResult* host)
+1 -1
View File
@@ -133,7 +133,7 @@ void ffGenerateHostJsonResult(FF_MAYBE_UNUSED FFHostOptions* options, yyjson_mut
yyjson_mut_obj_add_strbuf(doc, obj, "name", &host.name);
yyjson_mut_obj_add_strbuf(doc, obj, "version", &host.version);
yyjson_mut_obj_add_strbuf(doc, obj, "sku", &host.sku);
yyjson_mut_obj_add_strbuf(doc, obj, "vender", &host.vendor);
yyjson_mut_obj_add_strbuf(doc, obj, "vendor", &host.vendor);
yyjson_mut_obj_add_strbuf(doc, obj, "serial", &host.serial);
yyjson_mut_obj_add_strbuf(doc, obj, "uuid", &host.uuid);
+2 -2
View File
@@ -79,8 +79,8 @@ const FFSmbiosHeaderTable* ffGetSmbiosHeaderTable()
assert(bufSize > sizeof(FFRawSmbiosData));
buffer = (FFRawSmbiosData*) malloc(bufSize);
assert(buffer);
uint32_t resSize = GetSystemFirmwareTable(signature, 0, buffer, bufSize);
assert(resSize == bufSize);
uint32_t resultSize = GetSystemFirmwareTable(signature, 0, buffer, bufSize);
assert(resultSize == bufSize);
for (
const FFSmbiosHeader* header = (const FFSmbiosHeader*) buffer->SMBIOSTableData;