Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
edf17b51
Commit
edf17b51
authored
Oct 19, 2004
by
Anish Mistry
Committed by
Alexandre Julliard
Oct 19, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename getkey and setkey for FreeBSD.
parent
165b24b5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
winecfg.c
programs/winecfg/winecfg.c
+6
-6
No files found.
programs/winecfg/winecfg.c
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
{
...
...
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