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
af994f4e
Commit
af994f4e
authored
Jun 18, 2006
by
Thomas Weidenmueller
Committed by
Alexandre Julliard
Jun 19, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix updating the proc offset.
parent
1b7da237
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
client.c
tools/widl/client.c
+3
-3
server.c
tools/widl/server.c
+4
-4
No files found.
tools/widl/client.c
View file @
af994f4e
...
@@ -271,14 +271,14 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
...
@@ -271,14 +271,14 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
while
(
var
)
while
(
var
)
{
{
proc_offset
+=
get_size_procformatstring_var
(
var
);
*
proc_offset
+=
get_size_procformatstring_var
(
var
);
var
=
PREV_LINK
(
var
);
var
=
PREV_LINK
(
var
);
}
}
}
}
if
(
!
is_void
(
def
->
type
,
NULL
))
if
(
!
is_void
(
def
->
type
,
NULL
))
proc_offset
+=
get_size_procformatstring_var
(
def
);
*
proc_offset
+=
get_size_procformatstring_var
(
def
);
else
else
proc_offset
+=
2
;
/* FC_END and FC_PAD */
*
proc_offset
+=
2
;
/* FC_END and FC_PAD */
indent
--
;
indent
--
;
print_client
(
"}
\n
"
);
print_client
(
"}
\n
"
);
...
...
tools/widl/server.c
View file @
af994f4e
...
@@ -276,7 +276,7 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
...
@@ -276,7 +276,7 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
print_server
(
"NdrConvert(
\n
"
);
print_server
(
"NdrConvert(
\n
"
);
indent
++
;
indent
++
;
print_server
(
"(PMIDL_STUB_MESSAGE)&_StubMsg,
\n
"
);
print_server
(
"(PMIDL_STUB_MESSAGE)&_StubMsg,
\n
"
);
print_server
(
"(PFORMAT_STRING)&__MIDL_ProcFormatString.Format[%u]);
\n
"
,
proc_offset
);
print_server
(
"(PFORMAT_STRING)&__MIDL_ProcFormatString.Format[%u]);
\n
"
,
*
proc_offset
);
indent
-=
2
;
indent
-=
2
;
fprintf
(
server
,
"
\n
"
);
fprintf
(
server
,
"
\n
"
);
...
@@ -422,14 +422,14 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
...
@@ -422,14 +422,14 @@ static void write_function_stubs(type_t *iface, unsigned int *proc_offset, unsig
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
while
(
NEXT_LINK
(
var
))
var
=
NEXT_LINK
(
var
);
while
(
var
)
while
(
var
)
{
{
proc_offset
+=
get_size_procformatstring_var
(
var
);
*
proc_offset
+=
get_size_procformatstring_var
(
var
);
var
=
PREV_LINK
(
var
);
var
=
PREV_LINK
(
var
);
}
}
}
}
if
(
!
is_void
(
def
->
type
,
NULL
))
if
(
!
is_void
(
def
->
type
,
NULL
))
proc_offset
+=
get_size_procformatstring_var
(
def
);
*
proc_offset
+=
get_size_procformatstring_var
(
def
);
else
else
proc_offset
+=
2
;
/* FC_END and FC_PAD */
*
proc_offset
+=
2
;
/* FC_END and FC_PAD */
func
=
PREV_LINK
(
func
);
func
=
PREV_LINK
(
func
);
}
}
...
...
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