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
d2d33017
Commit
d2d33017
authored
Sep 29, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc: Win64 printf format warning fixes.
parent
5664b8ee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
+20
-21
Makefile.in
tools/wrc/Makefile.in
+0
-1
dumpres.c
tools/wrc/dumpres.c
+15
-15
newstruc.c
tools/wrc/newstruc.c
+5
-5
No files found.
tools/wrc/Makefile.in
View file @
d2d33017
...
...
@@ -4,7 +4,6 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
EXEEXT
=
@EXEEXT@
DEFS
=
-DWINE_NO_LONG_AS_INT
PROGRAMS
=
wrc
$(EXEEXT)
MANPAGES
=
wrc.man
...
...
tools/wrc/dumpres.c
View file @
d2d33017
...
...
@@ -203,12 +203,12 @@ static void dump_lvc(const lvc_t *l)
printf
(
"LANGUAGE <not set>
\n
"
);
if
(
l
->
version
)
printf
(
"VERSION %08
l
x
\n
"
,
*
(
l
->
version
));
printf
(
"VERSION %08x
\n
"
,
*
(
l
->
version
));
else
printf
(
"VERSION <not set>
\n
"
);
if
(
l
->
characts
)
printf
(
"CHARACTERISTICS %08
l
x
\n
"
,
*
(
l
->
characts
));
printf
(
"CHARACTERISTICS %08x
\n
"
,
*
(
l
->
characts
));
else
printf
(
"CHARACTERISTICS <not set>
\n
"
);
}
...
...
@@ -537,16 +537,16 @@ static void dump_control(const control_t *ctrl)
{
assert
(
ctrl
->
style
!=
NULL
);
assert
(
ctrl
->
style
->
and_mask
==
0
);
printf
(
"
\t
Style: %08
l
x
\n
"
,
ctrl
->
style
->
or_mask
);
printf
(
"
\t
Style: %08x
\n
"
,
ctrl
->
style
->
or_mask
);
}
if
(
ctrl
->
gotexstyle
)
{
assert
(
ctrl
->
exstyle
!=
NULL
);
assert
(
ctrl
->
exstyle
->
and_mask
==
0
);
printf
(
"
\t
ExStyle: %08
l
x
\n
"
,
ctrl
->
exstyle
->
or_mask
);
printf
(
"
\t
ExStyle: %08x
\n
"
,
ctrl
->
exstyle
->
or_mask
);
}
if
(
ctrl
->
gothelpid
)
printf
(
"
\t
Helpid: %
l
d
\n
"
,
ctrl
->
helpid
);
printf
(
"
\t
Helpid: %d
\n
"
,
ctrl
->
helpid
);
if
(
ctrl
->
extra
)
{
printf
(
"
\t
"
);
...
...
@@ -577,14 +577,14 @@ static void dump_dialog(const dialog_t *dlg)
{
assert
(
dlg
->
style
!=
NULL
);
assert
(
dlg
->
style
->
and_mask
==
0
);
printf
(
"Style: %08
l
x
\n
"
,
dlg
->
style
->
or_mask
);
printf
(
"Style: %08x
\n
"
,
dlg
->
style
->
or_mask
);
}
if
(
dlg
->
gotexstyle
)
{
assert
(
dlg
->
exstyle
!=
NULL
);
assert
(
dlg
->
exstyle
->
and_mask
==
0
);
printf
(
"ExStyle: %08
l
x
\n
"
,
dlg
->
exstyle
->
or_mask
);
printf
(
"ExStyle: %08x
\n
"
,
dlg
->
exstyle
->
or_mask
);
}
printf
(
"Menu: %s
\n
"
,
get_nameid_str
(
dlg
->
menu
));
printf
(
"Class: %s
\n
"
,
get_nameid_str
(
dlg
->
dlgclass
));
...
...
@@ -627,16 +627,16 @@ static void dump_dialogex(const dialogex_t *dlgex)
{
assert
(
dlgex
->
style
!=
NULL
);
assert
(
dlgex
->
style
->
and_mask
==
0
);
printf
(
"Style: %08
l
x
\n
"
,
dlgex
->
style
->
or_mask
);
printf
(
"Style: %08x
\n
"
,
dlgex
->
style
->
or_mask
);
}
if
(
dlgex
->
gotexstyle
)
{
assert
(
dlgex
->
exstyle
!=
NULL
);
assert
(
dlgex
->
exstyle
->
and_mask
==
0
);
printf
(
"ExStyle: %08
l
x
\n
"
,
dlgex
->
exstyle
->
or_mask
);
printf
(
"ExStyle: %08x
\n
"
,
dlgex
->
exstyle
->
or_mask
);
}
if
(
dlgex
->
gothelpid
)
printf
(
"Helpid: %
l
d
\n
"
,
dlgex
->
helpid
);
printf
(
"Helpid: %d
\n
"
,
dlgex
->
helpid
);
printf
(
"Menu: %s
\n
"
,
get_nameid_str
(
dlgex
->
menu
));
printf
(
"Class: %s
\n
"
,
get_nameid_str
(
dlgex
->
dlgclass
));
printf
(
"Title: "
);
print_string
(
dlgex
->
title
);
printf
(
"
\n
"
);
...
...
@@ -683,7 +683,7 @@ static void dump_menu_item(const menu_item_t *item)
if
(
item
->
name
)
{
print_string
(
item
->
name
);
printf
(
", %d, %08
l
x"
,
item
->
id
,
item
->
state
);
printf
(
", %d, %08x"
,
item
->
id
,
item
->
state
);
}
else
printf
(
"SEPARATOR"
);
...
...
@@ -732,9 +732,9 @@ static void dump_menuex_item(const menuex_item_t *item)
if
(
item
->
gotid
)
printf
(
", Id=%d"
,
item
->
id
);
if
(
item
->
gottype
)
printf
(
", Type=%
l
d"
,
item
->
type
);
printf
(
", Type=%d"
,
item
->
type
);
if
(
item
->
gotstate
)
printf
(
", State=%08
l
x"
,
item
->
state
);
printf
(
", State=%08x"
,
item
->
state
);
if
(
item
->
gothelpid
)
printf
(
", HelpId=%d"
,
item
->
helpid
);
printf
(
"
\n
"
);
...
...
@@ -749,9 +749,9 @@ static void dump_menuex_item(const menuex_item_t *item)
if
(
item
->
gotid
)
printf
(
", Id=%d"
,
item
->
id
);
if
(
item
->
gottype
)
printf
(
", Type=%
l
d"
,
item
->
type
);
printf
(
", Type=%d"
,
item
->
type
);
if
(
item
->
gotstate
)
printf
(
", State=%08
l
x"
,
item
->
state
);
printf
(
", State=%08x"
,
item
->
state
);
if
(
item
->
gothelpid
)
printf
(
", HelpId=%d"
,
item
->
helpid
);
}
...
...
tools/wrc/newstruc.c
View file @
d2d33017
...
...
@@ -327,7 +327,7 @@ static int convert_bitmap(char *data, int size)
type
|=
FL_SIZEBE
|
FL_OS2
;
}
else
parser_error
(
"Invalid bitmap format, bih->biSize = %
l
d"
,
bih
->
biSize
);
parser_error
(
"Invalid bitmap format, bih->biSize = %d"
,
bih
->
biSize
);
switch
(
type
)
{
...
...
@@ -1043,7 +1043,7 @@ messagetable_t *new_messagetable(raw_data_t *rd, int *memopt)
for
(
id
=
mbp
[
i
].
idlo
;
id
<=
mbp
[
i
].
idhi
;
id
++
)
{
if
(
MSGTAB_BAD_PTR
(
mep
,
rd
->
data
,
rd
->
size
,
mep
->
length
))
parser_error
(
"Messagetable's data for block %d, ID 0x%08
lx is outside of defined data"
,
(
int
)
i
,
id
);
parser_error
(
"Messagetable's data for block %d, ID 0x%08
x is outside of defined data"
,
i
,
id
);
if
(
mep
->
flags
==
1
)
/* Docu says 'flags == 0x0001' for unicode */
{
WORD
*
wp
=
(
WORD
*
)
&
mep
[
1
];
...
...
@@ -1051,7 +1051,7 @@ messagetable_t *new_messagetable(raw_data_t *rd, int *memopt)
int
n
;
if
(
mep
->
length
&
1
)
parser_error
(
"Message 0x%08
lx is unicode (block %d), but has odd length (%d)"
,
id
,
(
int
)
i
,
mep
->
length
);
parser_error
(
"Message 0x%08
x is unicode (block %d), but has odd length (%d)"
,
id
,
i
,
mep
->
length
);
for
(
n
=
0
;
n
<
l
;
n
++
)
wp
[
n
]
=
BYTESWAP_WORD
(
wp
[
n
]);
...
...
@@ -1096,7 +1096,7 @@ messagetable_t *new_messagetable(raw_data_t *rd, int *memopt)
mep
->
flags
=
BYTESWAP_WORD
(
mep
->
flags
);
if
(
MSGTAB_BAD_PTR
(
mep
,
rd
->
data
,
rd
->
size
,
mep
->
length
))
parser_error
(
"Messagetable's data for block %d, ID 0x%08
lx is outside of defined data"
,
(
int
)
i
,
id
);
parser_error
(
"Messagetable's data for block %d, ID 0x%08
x is outside of defined data"
,
i
,
id
);
if
(
mep
->
flags
==
1
)
/* Docu says 'flags == 0x0001' for unicode */
{
WORD
*
wp
=
(
WORD
*
)
&
mep
[
1
];
...
...
@@ -1104,7 +1104,7 @@ messagetable_t *new_messagetable(raw_data_t *rd, int *memopt)
int
n
;
if
(
mep
->
length
&
1
)
parser_error
(
"Message 0x%08
lx is unicode (block %d), but has odd length (%d)"
,
id
,
(
int
)
i
,
mep
->
length
);
parser_error
(
"Message 0x%08
x is unicode (block %d), but has odd length (%d)"
,
id
,
i
,
mep
->
length
);
for
(
n
=
0
;
n
<
l
;
n
++
)
wp
[
n
]
=
BYTESWAP_WORD
(
wp
[
n
]);
...
...
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