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
35d1347c
Commit
35d1347c
authored
Jan 31, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 31, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Fix the type offset used in marshaling/unmarshaling.
Make a copy of type_offset so that it only gets incremented once per function, instead of twice.
parent
2330d73f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
client.c
tools/widl/client.c
+5
-1
server.c
tools/widl/server.c
+5
-1
No files found.
tools/widl/client.c
View file @
35d1347c
...
...
@@ -103,6 +103,7 @@ static void write_function_stubs(type_t *iface)
{
var_t
*
def
=
func
->
def
;
var_t
*
explicit_handle_var
;
unsigned
int
type_offset_func
;
/* check for a defined binding handle */
explicit_handle_var
=
get_explicit_handle_var
(
func
);
...
...
@@ -194,8 +195,11 @@ static void write_function_stubs(type_t *iface)
fprintf
(
client
,
"
\n
"
);
/* make a copy so we don't increment the type offset twice */
type_offset_func
=
type_offset
;
/* marshal arguments */
marshall_arguments
(
client
,
indent
,
func
,
&
type_offset
,
PASS_IN
);
marshall_arguments
(
client
,
indent
,
func
,
&
type_offset
_func
,
PASS_IN
);
/* send/receive message */
/* print_client("NdrNsSendReceive(\n"); */
...
...
tools/widl/server.c
View file @
35d1347c
...
...
@@ -102,6 +102,7 @@ static void write_function_stubs(type_t *iface)
{
var_t
*
def
=
func
->
def
;
unsigned
long
buffer_size
=
0
;
unsigned
int
type_offset_func
;
/* check for a defined binding handle */
explicit_handle_var
=
get_explicit_handle_var
(
func
);
...
...
@@ -200,7 +201,10 @@ static void write_function_stubs(type_t *iface)
indent
-=
2
;
fprintf
(
server
,
"
\n
"
);
unmarshall_arguments
(
server
,
indent
,
func
,
&
type_offset
,
PASS_IN
);
/* make a copy so we don't increment the type offset twice */
type_offset_func
=
type_offset
;
unmarshall_arguments
(
server
,
indent
,
func
,
&
type_offset_func
,
PASS_IN
);
}
print_server
(
"if (_StubMsg.Buffer > _StubMsg.BufferEnd)
\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