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
9021cca6
Commit
9021cca6
authored
Nov 20, 2019
by
John Chadwick
Committed by
Alexandre Julliard
Nov 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Fix GetSystemFirmwareTable regression.
Regression caused by
71aba33f
. Signed-off-by:
John Chadwick
<
john@jchw.io
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2acbe4f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
version.c
dlls/kernel32/tests/version.c
+0
-1
memory.c
dlls/kernelbase/memory.c
+4
-7
No files found.
dlls/kernel32/tests/version.c
View file @
9021cca6
...
...
@@ -738,7 +738,6 @@ static void test_GetSystemFirmwareTable(void)
expected_len
-=
min_sfti_len
;
len
=
pGetSystemFirmwareTable
(
RSMB
,
0
,
NULL
,
0
);
todo_wine
ok
(
len
==
expected_len
,
"Expected length %u, got %u
\n
"
,
expected_len
,
len
);
smbios_table
=
HeapAlloc
(
GetProcessHeap
(),
0
,
expected_len
);
...
...
dlls/kernelbase/memory.c
View file @
9021cca6
...
...
@@ -1161,13 +1161,10 @@ UINT WINAPI GetSystemFirmwareTable( DWORD provider, DWORD id, void *buffer, DWOR
info
->
Action
=
SystemFirmwareTable_Get
;
info
->
TableID
=
id
;
if
(
set_ntstatus
(
NtQuerySystemInformation
(
SystemFirmwareTableInformation
,
info
,
buffer_size
,
&
buffer_size
)))
{
buffer_size
-=
offsetof
(
SYSTEM_FIRMWARE_TABLE_INFORMATION
,
TableBuffer
);
if
(
buffer_size
<=
size
)
memcpy
(
buffer
,
info
->
TableBuffer
,
buffer_size
);
}
else
buffer_size
=
0
;
set_ntstatus
(
NtQuerySystemInformation
(
SystemFirmwareTableInformation
,
info
,
buffer_size
,
&
buffer_size
));
buffer_size
-=
offsetof
(
SYSTEM_FIRMWARE_TABLE_INFORMATION
,
TableBuffer
);
if
(
buffer_size
<=
size
)
memcpy
(
buffer
,
info
->
TableBuffer
,
buffer_size
);
HeapFree
(
GetProcessHeap
(),
0
,
info
);
return
buffer_size
;
...
...
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