Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
2b76b9f2
Commit
2b76b9f2
authored
Aug 04, 2020
by
Brendan Shanks
Committed by
Alexandre Julliard
Aug 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: End generated SMBIOS tables with the end-of-table structure.
Signed-off-by:
Brendan Shanks
<
bshanks@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0720c6cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
system.c
dlls/ntdll/unix/system.c
+12
-0
No files found.
dlls/ntdll/unix/system.c
View file @
2b76b9f2
...
...
@@ -1263,6 +1263,7 @@ static NTSTATUS get_firmware_info( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULON
struct
smbios_system
*
system
;
struct
smbios_board
*
board
;
struct
smbios_chassis
*
chassis
;
struct
smbios_header
*
end_of_table
;
#define S(s) s, sizeof(s)
bios_vendor_len
=
get_smbios_string
(
"/sys/class/dmi/id/bios_vendor"
,
S
(
bios_vendor
));
...
...
@@ -1301,6 +1302,9 @@ static NTSTATUS get_firmware_info( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULON
*
required_len
+=
sizeof
(
struct
smbios_chassis
);
*
required_len
+=
max
(
L
(
chassis_vendor_len
)
+
L
(
chassis_version_len
)
+
L
(
chassis_serial_len
)
+
L
(
chassis_asset_tag_len
)
+
1
,
2
);
*
required_len
+=
sizeof
(
struct
smbios_header
);
*
required_len
+=
2
;
#undef L
sfti
->
TableBufferLength
=
*
required_len
;
...
...
@@ -1408,6 +1412,14 @@ static NTSTATUS get_firmware_info( SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULON
if
(
!
string_count
)
*
buffer
++
=
0
;
*
buffer
++
=
0
;
end_of_table
=
(
struct
smbios_header
*
)
buffer
;
end_of_table
->
type
=
127
;
end_of_table
->
length
=
sizeof
(
struct
smbios_header
);
end_of_table
->
handle
=
handle_count
++
;
buffer
+=
sizeof
(
struct
smbios_header
);
*
buffer
++
=
0
;
*
buffer
++
=
0
;
return
STATUS_SUCCESS
;
}
default
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment