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
b7430d4e
Commit
b7430d4e
authored
Dec 03, 2022
by
Mohamad Al-Jaf
Committed by
Alexandre Julliard
Dec 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Provide accurate SMBIOS serial number.
parent
29d05e54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
builtin.c
dlls/wbemprox/builtin.c
+9
-2
No files found.
dlls/wbemprox/builtin.c
View file @
b7430d4e
...
...
@@ -79,7 +79,7 @@ static const struct column col_bios[] =
{
L"Manufacturer"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"Name"
,
CIM_STRING
},
{
L"ReleaseDate"
,
CIM_DATETIME
|
COL_FLAG_DYNAMIC
},
{
L"SerialNumber"
,
CIM_STRING
},
{
L"SerialNumber"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"SMBIOSBIOSVersion"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"SMBIOSMajorVersion"
,
CIM_UINT16
},
{
L"SMBIOSMinorVersion"
,
CIM_UINT16
},
...
...
@@ -1378,6 +1378,13 @@ static WCHAR *get_bios_releasedate( const char *buf, UINT len )
return
ret
;
}
static
WCHAR
*
get_bios_serialnumber
(
const
char
*
buf
,
UINT
len
)
{
WCHAR
*
ret
=
get_bios_string
(
4
,
buf
,
len
);
if
(
!
ret
)
return
wcsdup
(
L"0"
);
return
ret
;
}
static
WCHAR
*
get_bios_smbiosbiosversion
(
const
char
*
buf
,
UINT
len
)
{
WCHAR
*
ret
=
get_bios_string
(
2
,
buf
,
len
);
...
...
@@ -1455,7 +1462,7 @@ static enum fill_status fill_bios( struct table *table, const struct expr *cond
rec
->
manufacturer
=
get_bios_manufacturer
(
buf
,
len
);
rec
->
name
=
L"Default System BIOS"
;
rec
->
releasedate
=
get_bios_releasedate
(
buf
,
len
);
rec
->
serialnumber
=
L"0"
;
rec
->
serialnumber
=
get_bios_serialnumber
(
buf
,
len
)
;
rec
->
smbiosbiosversion
=
get_bios_smbiosbiosversion
(
buf
,
len
);
rec
->
smbiosmajorversion
=
get_bios_smbiosmajorversion
(
buf
,
len
);
rec
->
smbiosminorversion
=
get_bios_smbiosminorversion
(
buf
,
len
);
...
...
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