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
88bddd7a
Commit
88bddd7a
authored
Aug 19, 2005
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 19, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gcc 4.0 warnings.
parent
23e9a042
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
drive.c
programs/winecfg/drive.c
+1
-1
winecfg.c
programs/winecfg/winecfg.c
+6
-6
No files found.
programs/winecfg/drive.c
View file @
88bddd7a
...
...
@@ -456,7 +456,7 @@ void apply_drive_changes(void)
driveValue
,
0
,
REG_SZ
,
typeText
,
(
LPBYTE
)
typeText
,
strlen
(
typeText
)
+
1
);
if
(
retval
!=
ERROR_SUCCESS
)
{
...
...
programs/winecfg/winecfg.c
View file @
88bddd7a
...
...
@@ -83,7 +83,7 @@ void set_window_title(HWND dialog)
*/
static
char
*
get_config_key
(
HKEY
root
,
const
char
*
subkey
,
const
char
*
name
,
const
char
*
def
)
{
LP
BYTE
buffer
=
NULL
;
LP
STR
buffer
=
NULL
;
DWORD
len
;
HKEY
hSubKey
=
NULL
;
DWORD
res
;
...
...
@@ -119,13 +119,13 @@ static char *get_config_key (HKEY root, const char *subkey, const char *name, co
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
+
1
);
RegQueryValueEx
(
hSubKey
,
name
,
NULL
,
NULL
,
buffer
,
&
len
);
RegQueryValueEx
(
hSubKey
,
name
,
NULL
,
NULL
,
(
LPBYTE
)
buffer
,
&
len
);
WINE_TRACE
(
"buffer=%s
\n
"
,
buffer
);
end:
if
(
hSubKey
&&
hSubKey
!=
root
)
RegCloseKey
(
hSubKey
);
return
(
char
*
)
buffer
;
return
buffer
;
}
/**
...
...
@@ -139,11 +139,11 @@ end:
*
* If valueName or value is NULL, an empty section will be created
*/
static
int
set_config_key
(
HKEY
root
,
const
char
*
subkey
,
const
char
*
name
,
const
BYTE
*
value
,
DWORD
type
)
{
static
int
set_config_key
(
HKEY
root
,
const
char
*
subkey
,
const
char
*
name
,
const
void
*
value
,
DWORD
type
)
{
DWORD
res
=
1
;
HKEY
key
=
NULL
;
WINE_TRACE
(
"subkey=%s: name=%s, value=%
s
, type=%ld
\n
"
,
subkey
,
name
,
value
,
type
);
WINE_TRACE
(
"subkey=%s: name=%s, value=%
p
, type=%ld
\n
"
,
subkey
,
name
,
value
,
type
);
assert
(
subkey
!=
NULL
);
...
...
@@ -165,7 +165,7 @@ static int set_config_key(HKEY root, const char *subkey, const char *name, const
res
=
0
;
end:
if
(
key
&&
key
!=
root
)
RegCloseKey
(
key
);
if
(
res
!=
0
)
WINE_ERR
(
"Unable to set configuration key %s in section %s
to %s, res=%ld
\n
"
,
name
,
subkey
,
value
,
res
);
if
(
res
!=
0
)
WINE_ERR
(
"Unable to set configuration key %s in section %s
, res=%ld
\n
"
,
name
,
subkey
,
res
);
return
res
;
}
...
...
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