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
69551fdf
Commit
69551fdf
authored
Jan 24, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jan 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Generate NdrNonConformatString* calls for non-conformant string types.
parent
a6c6e1d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
typegen.c
tools/widl/typegen.c
+16
-6
No files found.
tools/widl/typegen.c
View file @
69551fdf
...
...
@@ -833,9 +833,14 @@ void marshall_arguments(FILE *file, int indent, func_t *func,
if
(
is_string_type
(
var
->
attrs
,
var
->
ptr_level
,
var
->
array
))
{
print_file
(
file
,
indent
,
"NdrConformantStringMarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d]);
\n
"
,
var
->
name
,
*
type_offset
);
if
(
var
->
array
&&
var
->
array
->
is_const
)
print_file
(
file
,
indent
,
"NdrNonConformantStringMarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d]);
\n
"
,
var
->
name
,
*
type_offset
);
else
print_file
(
file
,
indent
,
"NdrConformantStringMarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d]);
\n
"
,
var
->
name
,
*
type_offset
);
last_size
=
1
;
}
else
if
(
is_array_type
(
var
->
attrs
,
var
->
ptr_level
,
var
->
array
))
...
...
@@ -1018,9 +1023,14 @@ void unmarshall_arguments(FILE *file, int indent, func_t *func,
if
(
is_string_type
(
var
->
attrs
,
var
->
ptr_level
,
var
->
array
))
{
print_file
(
file
,
indent
,
"NdrConformantStringUnmarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d], 0);
\n
"
,
var
->
name
,
*
type_offset
);
if
(
var
->
array
&&
var
->
array
->
is_const
)
print_file
(
file
,
indent
,
"NdrNonConformantStringUnmarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d], 0);
\n
"
,
var
->
name
,
*
type_offset
);
else
print_file
(
file
,
indent
,
"NdrConformantStringUnmarshall(&_StubMsg, (unsigned char *)%s, &__MIDL_TypeFormatString.Format[%d], 0);
\n
"
,
var
->
name
,
*
type_offset
);
last_size
=
1
;
}
else
if
(
is_array_type
(
var
->
attrs
,
var
->
ptr_level
,
var
->
array
))
...
...
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