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
381fa658
Commit
381fa658
authored
Oct 02, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 03, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Win64 printf format warning fixes.
parent
6c1ac026
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
13 deletions
+12
-13
Makefile.in
programs/winecfg/Makefile.in
+0
-1
appdefaults.c
programs/winecfg/appdefaults.c
+3
-3
drive.c
programs/winecfg/drive.c
+3
-3
winecfg.c
programs/winecfg/winecfg.c
+6
-6
No files found.
programs/winecfg/Makefile.in
View file @
381fa658
...
...
@@ -6,7 +6,6 @@ MODULE = winecfg.exe
APPMODE
=
-mwindows
IMPORTS
=
comdlg32 comctl32 shell32 ole32 winmm shlwapi uxtheme user32 gdi32 advapi32 kernel32
EXTRALIBS
=
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
C_SRCS
=
\
appdefaults.c
\
...
...
programs/winecfg/appdefaults.c
View file @
381fa658
...
...
@@ -360,7 +360,7 @@ static void on_winver_change(HWND dialog)
switch
(
win_versions
[
selection
].
dwPlatformId
)
{
case
VER_PLATFORM_WIN32_WINDOWS
:
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"%
ld.%ld.%l
d"
,
win_versions
[
selection
].
dwMajorVersion
,
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"%
d.%d.%
d"
,
win_versions
[
selection
].
dwMajorVersion
,
win_versions
[
selection
].
dwMinorVersion
,
win_versions
[
selection
].
dwBuildNumber
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"VersionNumber"
,
Buffer
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKey9x
,
"SubVersionNumber"
,
win_versions
[
selection
].
szCSDVersion
);
...
...
@@ -374,11 +374,11 @@ static void on_winver_change(HWND dialog)
break
;
case
VER_PLATFORM_WIN32_NT
:
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"%
ld.%l
d"
,
win_versions
[
selection
].
dwMajorVersion
,
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"%
d.%
d"
,
win_versions
[
selection
].
dwMajorVersion
,
win_versions
[
selection
].
dwMinorVersion
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CurrentVersion"
,
Buffer
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CSDVersion"
,
win_versions
[
selection
].
szCSDVersion
);
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"%
l
d"
,
win_versions
[
selection
].
dwBuildNumber
);
snprintf
(
Buffer
,
sizeof
(
Buffer
),
"%d"
,
win_versions
[
selection
].
dwBuildNumber
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyNT
,
"CurrentBuildNumber"
,
Buffer
);
set_reg_key
(
HKEY_LOCAL_MACHINE
,
szKeyProdNT
,
"ProductType"
,
win_versions
[
selection
].
szProductType
);
set_reg_key_dword
(
HKEY_LOCAL_MACHINE
,
szKeyWindNT
,
"CSDVersion"
,
...
...
programs/winecfg/drive.c
View file @
381fa658
...
...
@@ -322,7 +322,7 @@ void load_drives()
serial
=
0
;
}
WINE_TRACE
(
"serial: '0x%
l
X'
\n
"
,
serial
);
WINE_TRACE
(
"serial: '0x%X'
\n
"
,
serial
);
/* build rootpath for GetDriveType() */
lstrcpynA
(
rootpath
,
devices
,
sizeof
(
rootpath
));
...
...
@@ -343,7 +343,7 @@ void load_drives()
c
=
targetpath
;
do
if
(
*
c
==
'\\'
)
*
c
=
'/'
;
while
(
*
c
++
);
snprintf
(
serialstr
,
sizeof
(
serialstr
),
"%
l
X"
,
serial
);
snprintf
(
serialstr
,
sizeof
(
serialstr
),
"%X"
,
serial
);
WINE_TRACE
(
"serialstr: '%s'
\n
"
,
serialstr
);
add_drive
(
*
devices
,
targetpath
,
volname
,
serialstr
,
get_drive_type
(
devices
[
0
])
);
...
...
@@ -486,7 +486,7 @@ void apply_drive_changes(void)
if
(
drives
[
i
].
label
&&
strcmp
(
drives
[
i
].
label
,
volumeNameBuffer
))
set_drive_label
(
drives
[
i
].
letter
,
drives
[
i
].
label
);
snprintf
(
newSerialNumberText
,
sizeof
(
newSerialNumberText
),
"%
l
X"
,
serialNumber
);
snprintf
(
newSerialNumberText
,
sizeof
(
newSerialNumberText
),
"%X"
,
serialNumber
);
if
(
drives
[
i
].
serial
&&
drives
[
i
].
serial
[
0
]
&&
strcmp
(
drives
[
i
].
serial
,
newSerialNumberText
))
set_drive_serial
(
drives
[
i
].
letter
,
drives
[
i
].
serial
);
...
...
programs/winecfg/winecfg.c
View file @
381fa658
...
...
@@ -119,7 +119,7 @@ static char *get_config_key (HKEY root, const char *subkey, const char *name, co
}
else
{
WINE_ERR
(
"RegOpenKey failed on wine config key (res=%
l
d)
\n
"
,
res
);
WINE_ERR
(
"RegOpenKey failed on wine config key (res=%d)
\n
"
,
res
);
}
goto
end
;
}
...
...
@@ -132,7 +132,7 @@ static char *get_config_key (HKEY root, const char *subkey, const char *name, co
goto
end
;
}
else
if
(
res
!=
ERROR_SUCCESS
)
{
WINE_ERR
(
"Couldn't query value's length (res=%
l
d)
\n
"
,
res
);
WINE_ERR
(
"Couldn't query value's length (res=%d)
\n
"
,
res
);
goto
end
;
}
...
...
@@ -162,7 +162,7 @@ static int set_config_key(HKEY root, const char *subkey, const char *name, const
DWORD
res
=
1
;
HKEY
key
=
NULL
;
WINE_TRACE
(
"subkey=%s: name=%s, value=%p, type=%
l
d
\n
"
,
subkey
,
name
,
value
,
type
);
WINE_TRACE
(
"subkey=%s: name=%s, value=%p, type=%d
\n
"
,
subkey
,
name
,
value
,
type
);
assert
(
subkey
!=
NULL
);
...
...
@@ -184,7 +184,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, res=%
l
d
\n
"
,
name
,
subkey
,
res
);
if
(
res
!=
0
)
WINE_ERR
(
"Unable to set configuration key %s in section %s, res=%d
\n
"
,
name
,
subkey
,
res
);
return
res
;
}
...
...
@@ -492,7 +492,7 @@ char **enumerate_values(HKEY root, char *path)
}
else
{
WINE_WARN
(
"failed opening registry key %s, res=0x%
l
x
\n
"
,
path
,
res
);
WINE_WARN
(
"failed opening registry key %s, res=0x%x
\n
"
,
path
,
res
);
}
WINE_TRACE
(
"adding settings in list but not registry
\n
"
);
...
...
@@ -629,7 +629,7 @@ int initialize(HINSTANCE hInstance)
DWORD
res
=
RegCreateKey
(
HKEY_CURRENT_USER
,
WINE_KEY_ROOT
,
&
config_key
);
if
(
res
!=
ERROR_SUCCESS
)
{
WINE_ERR
(
"RegOpenKey failed on wine config key (%
l
d)
\n
"
,
res
);
WINE_ERR
(
"RegOpenKey failed on wine config key (%d)
\n
"
,
res
);
return
1
;
}
...
...
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