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
0521a541
Commit
0521a541
authored
Feb 20, 2000
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 20, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
While creating the wine config key, make sure that only Wine's subkeys
are volatile.
parent
e8742ddd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
profile.c
files/profile.c
+9
-1
No files found.
files/profile.c
View file @
0521a541
...
...
@@ -958,7 +958,15 @@ int PROFILE_LoadWineIni(void)
char
buffer
[
MAX_PATHNAME_LEN
];
const
char
*
p
;
FILE
*
f
;
HKEY
hKeySW
;
/* make sure HKLM\\Software exists as non-volatile key */
if
(
RegCreateKeyA
(
HKEY_LOCAL_MACHINE
,
"Software"
,
&
hKeySW
))
{
ERR
(
"Cannot create config registry key
\n
"
);
return
0
;
}
RegCloseKey
(
hKeySW
);
if
(
RegCreateKeyExA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Wine
\\
Wine
\\
Config"
,
0
,
NULL
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
wine_profile_key
,
NULL
))
{
...
...
@@ -1003,7 +1011,7 @@ int PROFILE_LoadWineIni(void)
goto
found
;
}
MESSAGE
(
"Can't open configuration file %s or $HOME%s
\n
"
,
WINE_INI_GLOBAL
,
PROFILE_WineIniName
);
WINE_INI_GLOBAL
,
PROFILE_WineIniName
);
return
0
;
found:
...
...
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