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
d82b3848
Commit
d82b3848
authored
Aug 27, 2007
by
Dan Hipschman
Committed by
Alexandre Julliard
Aug 28, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
widl: Handle LPSTR in typelibs.
parent
5861d084
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
typelib.c
tools/widl/typelib.c
+10
-2
write_msft.c
tools/widl/write_msft.c
+7
-0
No files found.
tools/widl/typelib.c
View file @
d82b3848
...
...
@@ -126,8 +126,9 @@ static int kw_cmp_func(const void *s1, const void *s2)
return
strcmp
(
KWP
(
s1
)
->
kw
,
KWP
(
s2
)
->
kw
);
}
static
unsigned
short
builtin_vt
(
const
char
*
kw
)
static
unsigned
short
builtin_vt
(
const
type_t
*
t
)
{
const
char
*
kw
=
t
->
name
;
struct
oatype
key
,
*
kwp
;
key
.
kw
=
kw
;
#ifdef KW_BSEARCH
...
...
@@ -145,6 +146,13 @@ static unsigned short builtin_vt(const char *kw)
if
(
kwp
)
{
return
kwp
->
vt
;
}
if
(
is_string_type
(
t
->
attrs
,
t
))
switch
(
t
->
ref
->
type
)
{
case
RPC_FC_CHAR
:
return
VT_LPSTR
;
case
RPC_FC_WCHAR
:
return
VT_LPWSTR
;
default:
break
;
}
return
0
;
}
...
...
@@ -160,7 +168,7 @@ unsigned short get_type_vt(type_t *t)
chat
(
"get_type_vt: %p type->name %s
\n
"
,
t
,
t
->
name
);
if
(
t
->
name
)
{
vt
=
builtin_vt
(
t
->
name
);
vt
=
builtin_vt
(
t
);
if
(
vt
)
return
vt
;
}
...
...
tools/widl/write_msft.c
View file @
d82b3848
...
...
@@ -852,6 +852,13 @@ static int encode_type(
*
encoded_type
=
default_type
;
break
;
case
VT_LPSTR
:
case
VT_LPWSTR
:
*
encoded_type
=
0xfffe0000
|
vt
;
*
width
=
4
;
*
alignment
=
4
;
break
;
case
VT_PTR
:
{
int
next_vt
;
...
...
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