Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
97114ac8
Commit
97114ac8
authored
Sep 18, 2023
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Get Win32_OperatingSystem.BuildType from the registry.
parent
985bb426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
builtin.c
dlls/wbemprox/builtin.c
+7
-2
No files found.
dlls/wbemprox/builtin.c
View file @
97114ac8
...
...
@@ -232,7 +232,7 @@ static const struct column col_operatingsystem[] =
{
{
L"BootDevice"
,
CIM_STRING
},
{
L"BuildNumber"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"BuildType"
,
CIM_STRING
},
{
L"BuildType"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"Caption"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"CodeSet"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
{
L"CountryCode"
,
CIM_STRING
|
COL_FLAG_DYNAMIC
},
...
...
@@ -3643,6 +3643,11 @@ static WCHAR *get_osbuildnumber( OSVERSIONINFOEXW *ver )
return
ret
;
}
static
WCHAR
*
get_osbuildtype
(
void
)
{
return
get_reg_str
(
HKEY_LOCAL_MACHINE
,
L"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion"
,
L"CurrentType"
);
}
static
WCHAR
*
get_oscaption
(
OSVERSIONINFOEXW
*
ver
)
{
static
const
WCHAR
windowsW
[]
=
L"Microsoft Windows "
;
...
...
@@ -3750,7 +3755,7 @@ static enum fill_status fill_operatingsystem( struct table *table, const struct
rec
=
(
struct
record_operatingsystem
*
)
table
->
data
;
rec
->
bootdevice
=
L"
\\
Device
\\
HarddiskVolume1"
;
rec
->
buildnumber
=
get_osbuildnumber
(
&
ver
);
rec
->
buildtype
=
L"Wine build"
;
rec
->
buildtype
=
get_osbuildtype
()
;
rec
->
caption
=
get_oscaption
(
&
ver
);
rec
->
codeset
=
get_codeset
();
rec
->
countrycode
=
get_countrycode
();
...
...
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