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
26ffca49
Commit
26ffca49
authored
Dec 12, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Dec 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted last VT_USERDEFINED patch (was broken).
Marshal TKIND_DISPATCH interfaces just like TKIND_INTERFACE.
parent
561a1a8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
34 deletions
+8
-34
tmarshal.c
dlls/oleaut32/tmarshal.c
+8
-34
No files found.
dlls/oleaut32/tmarshal.c
View file @
26ffca49
...
...
@@ -508,6 +508,7 @@ serialize_param(
}
ITypeInfo_GetTypeAttr
(
tinfo2
,
&
tattr
);
switch
(
tattr
->
typekind
)
{
case
TKIND_DISPATCH
:
case
TKIND_INTERFACE
:
if
(
writeit
)
hres
=
_marshal_interface
(
buf
,
&
(
tattr
->
guid
),(
LPUNKNOWN
)
arg
);
...
...
@@ -556,25 +557,11 @@ serialize_param(
if
(
debugout
)
MESSAGE
(
"}"
);
break
;
}
default:
{
TYPEDESC
tdesc2
;
if
(
debugout
)
MESSAGE
(
"U{"
);
memset
(
&
tdesc2
,
0
,
sizeof
(
tdesc2
));
tdesc2
.
vt
=
tattr
->
typekind
;
hres
=
serialize_param
(
tinfo2
,
writeit
,
debugout
,
dealloc
,
&
tdesc2
,
arg
,
buf
);
if
(
debugout
)
MESSAGE
(
"}"
);
default:
FIXME
(
"Unhandled typekind %d
\n
"
,
tattr
->
typekind
);
hres
=
E_FAIL
;
break
;
}
}
ITypeInfo_Release
(
tinfo2
);
return
hres
;
}
...
...
@@ -878,6 +865,7 @@ deserialize_param(
if
(
alloc
)
*
arg
=
(
DWORD
)
HeapAlloc
(
GetProcessHeap
(),
0
,
tattr
->
cbSizeInstance
);
switch
(
tattr
->
typekind
)
{
case
TKIND_DISPATCH
:
case
TKIND_INTERFACE
:
if
(
readit
)
hres
=
_unmarshal_interface
(
buf
,
&
(
tattr
->
guid
),(
LPUNKNOWN
*
)
arg
);
...
...
@@ -910,25 +898,11 @@ deserialize_param(
if
(
debugout
)
MESSAGE
(
"}"
);
break
;
}
default:
{
TYPEDESC
tdesc2
;
if
(
debugout
)
MESSAGE
(
"U{"
);
memset
(
&
tdesc2
,
0
,
sizeof
(
tdesc2
));
tdesc2
.
vt
=
tattr
->
typekind
;
hres
=
deserialize_param
(
tinfo2
,
readit
,
debugout
,
alloc
,
&
tdesc2
,
(
DWORD
*
)
*
arg
,
buf
);
if
(
debugout
)
MESSAGE
(
"}"
);
default:
ERR
(
"Unhandled typekind %d
\n
"
,
tattr
->
typekind
);
hres
=
E_FAIL
;
break
;
}
}
}
if
(
hres
)
FIXME
(
"failed to stuballoc in TKIND_RECORD.
\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