From 734a7120b6ca73ac4286fc8efaddf74534b7a513 Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Wed, 5 Aug 2020 10:44:37 -0700 Subject: [PATCH] ntdll: Add additional fields to generated SMBIOS chassis info table. Signed-off-by: Brendan Shanks Signed-off-by: Alexandre Julliard --- dlls/ntdll/unix/system.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index 69532669bef..56f77a0766b 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -143,6 +143,11 @@ struct smbios_chassis BYTE power_supply_state; BYTE thermal_state; BYTE security_status; + DWORD oem_defined; + BYTE height; + BYTE num_power_cords; + BYTE num_contained_elements; + BYTE contained_element_rec_length; }; #include "poppack.h" @@ -1393,6 +1398,11 @@ static NTSTATUS get_firmware_info( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULON chassis->power_supply_state = 0x02; /* unknown */ chassis->thermal_state = 0x02; /* unknown */ chassis->security_status = 0x02; /* unknown */ + chassis->oem_defined = 0; + chassis->height = 0; /* undefined */ + chassis->num_power_cords = 0; /* unspecified */ + chassis->num_contained_elements = 0; + chassis->contained_element_rec_length = 3; buffer += sizeof(struct smbios_chassis); copy_smbios_string(&buffer, chassis_vendor, chassis_vendor_len);