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
bd8fefd6
Commit
bd8fefd6
authored
Dec 03, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Dec 03, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OLE: fix invoking dispinterface functions
Fix invoking dispinterface functions by using the internal representation of the function, not the one returned to applications.
parent
c73679e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
typelib.c
dlls/oleaut32/typelib.c
+11
-8
No files found.
dlls/oleaut32/typelib.c
View file @
bd8fefd6
...
...
@@ -5185,25 +5185,29 @@ static HRESULT WINAPI ITypeInfo_fnInvoke(
{
ITypeInfoImpl
*
This
=
(
ITypeInfoImpl
*
)
iface
;
int
i
;
unsigned
int
func_index
,
var_index
;
unsigned
int
var_index
;
TYPEKIND
type_kind
;
HRESULT
hres
;
const
TLBFuncDesc
*
pFuncInfo
;
TRACE
(
"(%p)(%p,id=%ld,flags=0x%08x,%p,%p,%p,%p) partial stub!
\n
"
,
This
,
pIUnk
,
memid
,
dwFlags
,
pDispParams
,
pVarResult
,
pExcepInfo
,
pArgErr
);
dump_DispParms
(
pDispParams
);
hres
=
ITypeInfo2_GetFuncIndexOfMemId
(
iface
,
memid
,
dwFlags
,
&
func_index
);
if
(
SUCCEEDED
(
hres
))
{
FUNCDESC
*
func_desc
;
/* we do this instead of using GetFuncDesc since it will return a fake
* FUNCDESC for dispinterfaces and we want the real function description */
for
(
pFuncInfo
=
This
->
funclist
;
pFuncInfo
;
pFuncInfo
=
pFuncInfo
->
next
)
if
(
memid
==
pFuncInfo
->
funcdesc
.
memid
&&
(
dwFlags
&
pFuncInfo
->
funcdesc
.
invkind
))
break
;
if
(
pFuncInfo
)
{
const
FUNCDESC
*
func_desc
=
&
pFuncInfo
->
funcdesc
;
hres
=
ITypeInfo2_GetFuncDesc
(
iface
,
func_index
,
&
func_desc
);
if
(
FAILED
(
hres
))
return
hres
;
if
(
TRACE_ON
(
ole
))
{
TRACE
(
"invoking:
\n
"
);
dump_
FUNCDESC
(
func_desc
);
dump_
TLBFuncDesc
(
pFuncInfo
);
}
switch
(
func_desc
->
funckind
)
{
...
...
@@ -5376,7 +5380,6 @@ func_fail:
break
;
}
ITypeInfo2_ReleaseFuncDesc
(
iface
,
func_desc
);
TRACE
(
"-- 0x%08lx
\n
"
,
hres
);
return
hres
;
...
...
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