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
61f8e123
Commit
61f8e123
authored
Nov 30, 2004
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Nov 30, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Again rename getkey() and setkey() for FreeBSD.
parent
57639774
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 @
61f8e123
...
@@ -71,7 +71,7 @@ void set_window_title(HWND dialog)
...
@@ -71,7 +71,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 *subkey : the name of the config section
* char *name : the name of the config value
* char *name : the name of the config value
...
@@ -81,7 +81,7 @@ void set_window_title(HWND dialog)
...
@@ -81,7 +81,7 @@ void set_window_title(HWND dialog)
* not. Caller is responsible for releasing the result.
* 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
;
LPBYTE
buffer
=
NULL
;
DWORD
len
;
DWORD
len
;
...
@@ -129,7 +129,7 @@ end:
...
@@ -129,7 +129,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 *subKey : the name of the config section
* const char *valueName : the name of the config value
* const char *valueName : the name of the config value
...
@@ -139,7 +139,7 @@ end:
...
@@ -139,7 +139,7 @@ end:
*
*
* If valueName or value is NULL, an empty section will be created
* 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
;
DWORD
res
=
1
;
HKEY
key
=
NULL
;
HKEY
key
=
NULL
;
...
@@ -258,7 +258,7 @@ char *get(char *path, char *name, char *def)
...
@@ -258,7 +258,7 @@ char *get(char *path, char *name, char *def)
}
}
/* no, so get from the registry */
/* no, so get from the registry */
val
=
getkey
(
path
,
name
,
def
);
val
=
get
_config_
key
(
path
,
name
,
def
);
WINE_TRACE
(
"returning %s
\n
"
,
val
);
WINE_TRACE
(
"returning %s
\n
"
,
val
);
...
@@ -445,7 +445,7 @@ static void process_setting(struct setting *s)
...
@@ -445,7 +445,7 @@ static void process_setting(struct setting *s)
if
(
s
->
value
)
if
(
s
->
value
)
{
{
WINE_TRACE
(
"Setting %s:%s to '%s'
\n
"
,
s
->
path
,
s
->
name
,
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
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