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
4d0f0760
Commit
4d0f0760
authored
Sep 18, 2005
by
Kimmo Myllyvirta
Committed by
Alexandre Julliard
Sep 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If HKCU\Software\Wine does not yet exist, create it as non-volatile
key, instead of volatile.
parent
112115bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
sysparams.c
dlls/user/sysparams.c
+22
-9
No files found.
dlls/user/sysparams.c
View file @
4d0f0760
...
...
@@ -229,13 +229,13 @@ static const WCHAR METRICS_MENULOGFONT_VALNAME[]= {'M','e','n','u','F','o','
static
const
WCHAR
METRICS_MESSAGELOGFONT_VALNAME
[]
=
{
'M'
,
'e'
,
's'
,
's'
,
'a'
,
'g'
,
'e'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
static
const
WCHAR
METRICS_STATUSLOGFONT_VALNAME
[]
=
{
'S'
,
't'
,
'a'
,
't'
,
'u'
,
's'
,
'F'
,
'o'
,
'n'
,
't'
,
0
};
/* volatile registry branch under CURRENT_USER_REGKEY for temporary values storage */
static
const
WCHAR
WINE_CURRENT_USER_REGKEY
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'\\'
,
'T'
,
'e'
,
'm'
,
'p'
,
'o'
,
'r'
,
'a'
,
'r'
,
'y'
,
' '
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
' '
,
'P'
,
'a'
,
'r'
,
'a'
,
'm'
,
'e'
,
't'
,
'e'
,
'r'
,
's'
,
0
};
'W'
,
'i'
,
'n'
,
'e'
,
0
};
/* volatile registry branch under WINE_CURRENT_USER_REGKEY for temporary values storage */
static
const
WCHAR
WINE_CURRENT_USER_REGKEY_TEMP_PARAMS
[]
=
{
'T'
,
'e'
,
'm'
,
'p'
,
'o'
,
'r'
,
'a'
,
'r'
,
'y'
,
' '
,
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
' '
,
'P'
,
'a'
,
'r'
,
'a'
,
'm'
,
'e'
,
't'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
Yes
[]
=
{
'Y'
,
'e'
,
's'
,
0
};
static
const
WCHAR
No
[]
=
{
'N'
,
'o'
,
0
};
...
...
@@ -452,11 +452,24 @@ static HKEY get_volatile_regkey(void)
if
(
!
volatile_key
)
{
/* @@ Wine registry key: HKCU\Software\Wine\Temporary System Parameters */
HKEY
key
;
/* This must be non-volatile! */
if
(
RegCreateKeyExW
(
HKEY_CURRENT_USER
,
WINE_CURRENT_USER_REGKEY
,
0
,
0
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
0
,
&
volatile_key
,
0
)
!=
ERROR_SUCCESS
)
ERR
(
"Can't create wine configuration registry branch
\n
"
);
0
,
0
,
REG_OPTION_NON_VOLATILE
,
KEY_ALL_ACCESS
,
0
,
&
key
,
0
)
!=
ERROR_SUCCESS
)
{
ERR
(
"Can't create wine registry branch
\n
"
);
}
else
{
/* @@ Wine registry key: HKCU\Software\Wine\Temporary System Parameters */
if
(
RegCreateKeyExW
(
key
,
WINE_CURRENT_USER_REGKEY_TEMP_PARAMS
,
0
,
0
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
0
,
&
volatile_key
,
0
)
!=
ERROR_SUCCESS
)
ERR
(
"Can't create non-permanent wine registry branch
\n
"
);
RegCloseKey
(
key
);
}
}
return
volatile_key
;
}
...
...
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