Host (Windows): cleanup useless smbios values

This commit is contained in:
李通洲
2023-07-04 17:53:28 +08:00
parent 107b3dc1e3
commit c6416b5ccb
3 changed files with 14 additions and 0 deletions
+4
View File
@@ -1,5 +1,6 @@
#include "board.h"
#include "util/windows/registry.h"
#include "util/smbiosHelper.h"
const char* ffDetectBoard(FFBoardResult* board)
{
@@ -11,8 +12,11 @@ const char* ffDetectBoard(FFBoardResult* board)
if(!ffRegReadStrbuf(hKey, L"BaseBoardProduct", &board->name, NULL))
return "ffRegReadStrbuf(hKey, L\"BaseBoardProduct\") failed";
ffCleanUpSmbiosValue(&board->name);
ffRegReadStrbuf(hKey, L"BaseBoardManufacturer", &board->vendor, NULL);
ffCleanUpSmbiosValue(&board->vendor);
ffRegReadStrbuf(hKey, L"BaseBoardVersion", &board->version, NULL);
ffCleanUpSmbiosValue(&board->version);
return NULL;
}