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
6f823db5
Commit
6f823db5
authored
Sep 07, 2005
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 07, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VT_PTR->VT_USERDEFINED chains depend on the TKIND of the userdefined
type due to our handling of COM interfaces in there.
parent
937441b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
4 deletions
+56
-4
tmarshal.c
dlls/oleaut32/tmarshal.c
+56
-4
No files found.
dlls/oleaut32/tmarshal.c
View file @
6f823db5
...
...
@@ -608,9 +608,35 @@ serialize_param(
}
case
VT_PTR
:
{
DWORD
cookie
;
BOOL
derefhere
;
BOOL
derefhere
=
TRUE
;
derefhere
=
(
tdesc
->
u
.
lptdesc
->
vt
!=
VT_USERDEFINED
);
if
(
tdesc
->
u
.
lptdesc
->
vt
==
VT_USERDEFINED
)
{
ITypeInfo
*
tinfo2
;
TYPEATTR
*
tattr
;
hres
=
ITypeInfo_GetRefTypeInfo
(
tinfo
,
tdesc
->
u
.
lptdesc
->
u
.
hreftype
,
&
tinfo2
);
if
(
hres
)
{
ERR
(
"Could not get typeinfo of hreftype %lx for VT_USERDEFINED.
\n
"
,
tdesc
->
u
.
lptdesc
->
u
.
hreftype
);
return
hres
;
}
ITypeInfo_GetTypeAttr
(
tinfo2
,
&
tattr
);
switch
(
tattr
->
typekind
)
{
case
TKIND_ENUM
:
/* confirmed */
case
TKIND_RECORD
:
/* FIXME: mostly untested */
derefhere
=
TRUE
;
break
;
case
TKIND_ALIAS
:
/* FIXME: untested */
case
TKIND_DISPATCH
:
/* will be done in VT_USERDEFINED case */
case
TKIND_INTERFACE
:
/* will be done in VT_USERDEFINED case */
derefhere
=
FALSE
;
break
;
default:
FIXME
(
"unhandled switch cases tattr->typekind %d
\n
"
,
tattr
->
typekind
);
derefhere
=
FALSE
;
break
;
}
ITypeInfo_Release
(
tinfo2
);
}
if
(
debugout
)
TRACE_
(
olerelay
)(
"*"
);
/* Write always, so the other side knows when it gets a NULL pointer.
...
...
@@ -1184,9 +1210,35 @@ deserialize_param(
}
case
VT_PTR
:
{
DWORD
cookie
;
BOOL
derefhere
=
0
;
BOOL
derefhere
=
TRUE
;
derefhere
=
(
tdesc
->
u
.
lptdesc
->
vt
!=
VT_USERDEFINED
);
if
(
tdesc
->
u
.
lptdesc
->
vt
==
VT_USERDEFINED
)
{
ITypeInfo
*
tinfo2
;
TYPEATTR
*
tattr
;
hres
=
ITypeInfo_GetRefTypeInfo
(
tinfo
,
tdesc
->
u
.
lptdesc
->
u
.
hreftype
,
&
tinfo2
);
if
(
hres
)
{
ERR
(
"Could not get typeinfo of hreftype %lx for VT_USERDEFINED.
\n
"
,
tdesc
->
u
.
lptdesc
->
u
.
hreftype
);
return
hres
;
}
ITypeInfo_GetTypeAttr
(
tinfo2
,
&
tattr
);
switch
(
tattr
->
typekind
)
{
case
TKIND_ENUM
:
/* confirmed */
case
TKIND_RECORD
:
/* FIXME: mostly untested */
derefhere
=
TRUE
;
break
;
case
TKIND_ALIAS
:
/* FIXME: untested */
case
TKIND_DISPATCH
:
/* will be done in VT_USERDEFINED case */
case
TKIND_INTERFACE
:
/* will be done in VT_USERDEFINED case */
derefhere
=
FALSE
;
break
;
default:
FIXME
(
"unhandled switch cases tattr->typekind %d
\n
"
,
tattr
->
typekind
);
derefhere
=
FALSE
;
break
;
}
ITypeInfo_Release
(
tinfo2
);
}
/* read it in all cases, we need to know if we have
* NULL pointer or not.
*/
...
...
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