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
664e7938
Commit
664e7938
authored
Sep 06, 2013
by
Andrew Eikum
Committed by
Alexandre Julliard
Sep 06, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Improve TYPEDESC encoding for unknown VARTYPEs.
It's not worth printing a FIXME for every VARTYPE we don't happen to list in the switch statement.
parent
b9292833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
38 deletions
+19
-38
typelib.c
dlls/oleaut32/typelib.c
+19
-38
No files found.
dlls/oleaut32/typelib.c
View file @
664e7938
...
...
@@ -9142,41 +9142,6 @@ static DWORD WMSFT_append_typedesc(TYPEDESC *desc, WMSFT_TLBFile *file, DWORD *o
out_size
=
&
junk2
;
vt
=
desc
->
vt
&
VT_TYPEMASK
;
switch
(
vt
){
case
VT_INT
:
subtype
=
VT_I4
;
break
;
case
VT_UINT
:
subtype
=
VT_UI4
;
break
;
case
VT_VOID
:
subtype
=
VT_EMPTY
;
break
;
default:
subtype
=
vt
;
break
;
}
switch
(
vt
){
case
VT_INT
:
case
VT_UINT
:
case
VT_I1
:
case
VT_UI1
:
case
VT_I2
:
case
VT_UI2
:
case
VT_I4
:
case
VT_UI4
:
case
VT_BOOL
:
case
VT_R4
:
case
VT_ERROR
:
case
VT_BSTR
:
case
VT_HRESULT
:
case
VT_CY
:
case
VT_VOID
:
case
VT_VARIANT
:
*
out_mix
=
subtype
;
return
0x80000000
|
(
subtype
<<
16
)
|
desc
->
vt
;
}
if
(
vt
==
VT_PTR
||
vt
==
VT_SAFEARRAY
){
DWORD
mix
;
...
...
@@ -9193,9 +9158,25 @@ static DWORD WMSFT_append_typedesc(TYPEDESC *desc, WMSFT_TLBFile *file, DWORD *o
encoded
[
1
]
=
desc
->
u
.
hreftype
;
*
out_mix
=
0x7FFF
;
/* FIXME: Should get TYPEKIND of the hreftype, e.g. TKIND_ENUM => VT_I4 */
}
else
{
FIXME
(
"Don't know what to do! VT: 0x%x
\n
"
,
desc
->
vt
);
*
out_mix
=
desc
->
vt
;
return
0x80000000
|
(
desc
->
vt
<<
16
)
|
desc
->
vt
;
TRACE
(
"Mixing in-place, VT: 0x%x
\n
"
,
desc
->
vt
);
switch
(
vt
){
case
VT_INT
:
subtype
=
VT_I4
;
break
;
case
VT_UINT
:
subtype
=
VT_UI4
;
break
;
case
VT_VOID
:
subtype
=
VT_EMPTY
;
break
;
default:
subtype
=
vt
;
break
;
}
*
out_mix
=
subtype
;
return
0x80000000
|
(
subtype
<<
16
)
|
desc
->
vt
;
}
data
=
file
->
typdesc_seg
.
data
;
...
...
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