Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
edf17b51
Commit
edf17b51
authored
20 years ago
by
Anish Mistry
Committed by
Alexandre Julliard
20 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rename getkey and setkey for FreeBSD.
parent
165b24b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
programs/winecfg/winecfg.c
+6
-6
6 additions, 6 deletions
programs/winecfg/winecfg.c
with
6 additions
and
6 deletions
programs/winecfg/winecfg.c
+
6
−
6
View file @
edf17b51
...
...
@@ -65,7 +65,7 @@ void set_window_title(HWND dialog)
/**
* getkey: Retrieves a configuration value from the registry
* get
_config_
key: Retrieves a configuration value from the registry
*
* char *subkey : the name of the config section
* char *name : the name of the config value
...
...
@@ -75,7 +75,7 @@ void set_window_title(HWND dialog)
* not. Caller is responsible for releasing the result.
*
*/
static
char
*
getkey
(
char
*
subkey
,
char
*
name
,
char
*
def
)
static
char
*
get
_config_
key
(
char
*
subkey
,
char
*
name
,
char
*
def
)
{
LPBYTE
buffer
=
NULL
;
DWORD
len
;
...
...
@@ -123,7 +123,7 @@ end:
}
/**
* setkey: convenience wrapper to set a key/value pair
* set
_config_
key: convenience wrapper to set a key/value pair
*
* const char *subKey : the name of the config section
* const char *valueName : the name of the config value
...
...
@@ -133,7 +133,7 @@ end:
*
* If valueName or value is NULL, an empty section will be created
*/
int
setkey
(
const
char
*
subkey
,
const
char
*
name
,
const
char
*
value
)
{
int
set
_config_
key
(
const
char
*
subkey
,
const
char
*
name
,
const
char
*
value
)
{
DWORD
res
=
1
;
HKEY
key
=
NULL
;
...
...
@@ -252,7 +252,7 @@ char *get(char *path, char *name, char *def)
}
/* no, so get from the registry */
val
=
getkey
(
path
,
name
,
def
);
val
=
get
_config_
key
(
path
,
name
,
def
);
WINE_TRACE
(
"returning %s
\n
"
,
val
);
...
...
@@ -439,7 +439,7 @@ static void process_setting(struct setting *s)
if
(
s
->
value
)
{
WINE_TRACE
(
"Setting %s:%s to '%s'
\n
"
,
s
->
path
,
s
->
name
,
s
->
value
);
setkey
(
s
->
path
,
s
->
name
,
s
->
value
);
set
_config_
key
(
s
->
path
,
s
->
name
,
s
->
value
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment