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
9f24f14c
Commit
9f24f14c
authored
Sep 08, 2011
by
Bruno Jesus
Committed by
Alexandre Julliard
Sep 09, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Write the ProductName registry key based on selected OS.
parent
4520815c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
appdefaults.c
programs/winecfg/appdefaults.c
+8
-0
No files found.
programs/winecfg/appdefaults.c
View file @
9f24f14c
...
...
@@ -424,10 +424,13 @@ static void on_winver_change(HWND dialog)
win_versions
[
selection
].
dwMinorVersion
,
win_versions
[
selection
].
dwBuildNumber
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"VersionNumber"
,
Buffer
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"SubVersionNumber"
,
win_versions
[
selection
].
szCSDVersion
);
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"Microsoft %s"
,
win_versions
[
selection
].
szDescription
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"ProductName"
,
Buffer
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CSDVersion"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CurrentVersion"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CurrentBuildNumber"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"ProductName"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyProdNT
,
"ProductType"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyWindNT
,
"CSDVersion"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyEnvNT
,
"OS"
,
NULL
);
...
...
@@ -441,6 +444,8 @@ static void on_winver_change(HWND dialog)
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CSDVersion"
,
win_versions
[
selection
].
szCSDVersion
);
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"%d"
,
win_versions
[
selection
].
dwBuildNumber
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CurrentBuildNumber"
,
Buffer
);
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"Microsoft %s"
,
win_versions
[
selection
].
szDescription
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"ProductName"
,
Buffer
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyProdNT
,
"ProductType"
,
win_versions
[
selection
].
szProductType
);
set_reg_key_dword
(
HKEY_LOCAL_MACHINE
,
szKeyWindNT
,
"CSDVersion"
,
MAKEWORD
(
win_versions
[
selection
].
wServicePackMinor
,
...
...
@@ -449,6 +454,7 @@ static void on_winver_change(HWND dialog)
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"VersionNumber"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"SubVersionNumber"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"ProductName"
,
NULL
);
set_reg_key
(
config_key
,
keypath
(
""
),
"Version"
,
NULL
);
break
;
...
...
@@ -456,11 +462,13 @@ static void on_winver_change(HWND dialog)
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CSDVersion"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CurrentVersion"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CurrentBuildNumber"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"ProductName"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyProdNT
,
"ProductType"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyWindNT
,
"CSDVersion"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyEnvNT
,
"OS"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"VersionNumber"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"SubVersionNumber"
,
NULL
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"ProductName"
,
NULL
);
set_reg_key
(
config_key
,
keypath
(
""
),
"Version"
,
win_versions
[
selection
].
szVersion
);
break
;
}
...
...
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