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
fb15dabd
Commit
fb15dabd
authored
Jun 13, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Fix a few printf format warnings by casting size_t.
parent
836b5c7e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
relay.c
tools/winebuild/relay.c
+4
-4
res32.c
tools/winebuild/res32.c
+2
-2
No files found.
tools/winebuild/relay.c
View file @
fb15dabd
...
...
@@ -214,7 +214,7 @@ static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk )
if
(
thunk
)
{
/* Set up registers as expected and call thunk */
fprintf
(
outfile
,
"
\t
leal %d(%%edx), %%ebx
\n
"
,
sizeof
(
STACK16FRAME
)
-
22
);
fprintf
(
outfile
,
"
\t
leal %d(%%edx), %%ebx
\n
"
,
(
int
)
sizeof
(
STACK16FRAME
)
-
22
);
fprintf
(
outfile
,
"
\t
leal -4(%%esp), %%ebp
\n
"
);
fprintf
(
outfile
,
"
\t
call *%d(%%edx)
\n
"
,
STACK16OFFSET
(
entry_point
)
);
...
...
@@ -248,7 +248,7 @@ static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk )
/* Build register CONTEXT */
if
(
reg_func
)
{
fprintf
(
outfile
,
"
\t
subl $%d, %%esp
\n
"
,
sizeof
(
CONTEXT86
)
);
fprintf
(
outfile
,
"
\t
subl $%d, %%esp
\n
"
,
(
int
)
sizeof
(
CONTEXT86
)
);
fprintf
(
outfile
,
"
\t
movl %%ecx, %d(%%esp)
\n
"
,
CONTEXTOFFSET
(
EFlags
)
);
...
...
@@ -301,7 +301,7 @@ static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk )
}
/* Call relay routine (which will call the API entry point) */
fprintf
(
outfile
,
"
\t
leal %d(%%edx), %%eax
\n
"
,
sizeof
(
STACK16FRAME
)
);
fprintf
(
outfile
,
"
\t
leal %d(%%edx), %%eax
\n
"
,
(
int
)
sizeof
(
STACK16FRAME
)
);
fprintf
(
outfile
,
"
\t
pushl %%eax
\n
"
);
fprintf
(
outfile
,
"
\t
pushl %d(%%edx)
\n
"
,
STACK16OFFSET
(
entry_point
)
);
fprintf
(
outfile
,
"
\t
call *%d(%%edx)
\n
"
,
STACK16OFFSET
(
relay
)
);
...
...
@@ -309,7 +309,7 @@ static void BuildCallFrom16Core( FILE *outfile, int reg_func, int thunk )
if
(
reg_func
)
{
fprintf
(
outfile
,
"
\t
leal -%d(%%ebp), %%ebx
\n
"
,
sizeof
(
CONTEXT
)
+
STACK32OFFSET
(
ebp
)
);
(
int
)
sizeof
(
CONTEXT
)
+
STACK32OFFSET
(
ebp
)
);
/* Switch stack back */
fprintf
(
outfile
,
"
\t
.byte 0x64
\n\t
movw (%d), %%ss
\n
"
,
STACKOFFSET
+
2
);
...
...
tools/winebuild/res32.c
View file @
fb15dabd
...
...
@@ -428,8 +428,8 @@ void output_resources( FILE *outfile, DLLSPEC *spec )
output_res_dir
(
outfile
,
0
,
name
->
nb_languages
);
for
(
k
=
0
,
res
=
name
->
res
;
k
<
name
->
nb_languages
;
k
++
,
res
++
)
{
fprintf
(
outfile
,
"
\t
.long 0x%08x,0x%08x
\n
"
,
res
->
lang
,
data_offset
+
(
res
-
spec
->
resources
)
*
sizeof
(
IMAGE_RESOURCE_DATA_ENTRY
)
);
unsigned
int
entry_offset
=
(
res
-
spec
->
resources
)
*
sizeof
(
IMAGE_RESOURCE_DATA_ENTRY
);
fprintf
(
outfile
,
"
\t
.long 0x%08x,0x%08x
\n
"
,
res
->
lang
,
data_offset
+
entry_offset
);
}
}
}
...
...
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