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
1bd4bbb5
Commit
1bd4bbb5
authored
Nov 08, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Nov 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Draft implementation of DispCallFunc.
parent
ac36f950
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
1 deletion
+47
-1
oleaut32.spec
dlls/oleaut32/oleaut32.spec
+1
-1
typelib.c
dlls/oleaut32/typelib.c
+46
-0
No files found.
dlls/oleaut32/oleaut32.spec
View file @
1bd4bbb5
...
...
@@ -142,7 +142,7 @@
142 stdcall VarAnd(ptr ptr ptr) VarAnd
143 stub VarDiv # stdcall (ptr ptr ptr)
144 stub OACreateTypeLib2
146 st
ub
DispCallFunc
146 st
dcall DispCallFunc(ptr long long long long ptr ptr ptr)
DispCallFunc
147 stdcall VariantChangeTypeEx(ptr ptr long long long) VariantChangeTypeEx
148 stdcall SafeArrayPtrOfIndex(ptr ptr ptr) SafeArrayPtrOfIndex
149 stdcall SysStringByteLen(ptr) SysStringByteLen
...
...
dlls/oleaut32/typelib.c
View file @
1bd4bbb5
...
...
@@ -4192,6 +4192,52 @@ _invoke(LPVOID func,CALLCONV callconv, int nrargs, DWORD *args) {
extern
int
const
_argsize
(
DWORD
vt
);
HRESULT
WINAPI
DispCallFunc
(
void
*
pvInstance
,
ULONG
oVft
,
CALLCONV
cc
,
VARTYPE
vtReturn
,
UINT
cActuals
,
VARTYPE
*
prgvt
,
VARIANTARG
**
prgpvarg
,
VARIANT
*
pvargResult
)
{
int
i
,
argsize
,
argspos
;
DWORD
*
args
;
HRESULT
hres
;
FIXME
(
"(%p, %ld, %d, %d, %d, %p, %p, %p)
\n
"
,
pvInstance
,
oVft
,
cc
,
vtReturn
,
cActuals
,
prgvt
,
prgpvarg
,
pvargResult
);
argsize
=
0
;
for
(
i
=
0
;
i
<
cActuals
;
i
++
)
{
FIXME
(
"arg %d: type %d
\n
"
,
i
,
prgvt
[
i
]);
dump_Variant
(
prgpvarg
[
i
]);
argsize
+=
_argsize
(
prgvt
[
i
]);
}
args
=
(
DWORD
*
)
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
DWORD
)
*
argsize
);
argspos
=
0
;
for
(
i
=
0
;
i
<
cActuals
;
i
++
)
{
int
arglen
;
VARIANT
*
arg
=
prgpvarg
[
i
];
arglen
=
_argsize
(
prgvt
[
i
]);
if
(
V_VT
(
arg
)
==
prgvt
[
i
])
{
memcpy
(
&
args
[
argspos
],
&
V_UNION
(
arg
,
lVal
),
arglen
*
sizeof
(
DWORD
));
}
else
{
if
(
prgvt
[
i
]
==
VT_VARIANT
)
{
memcpy
(
&
args
[
argspos
],
arg
,
arglen
*
sizeof
(
DWORD
));
}
else
{
ERR
(
"Set arg %d to disparg type %d vs %d
\n
"
,
i
,
V_VT
(
arg
),
prgvt
[
i
]
);
}
}
argspos
+=
arglen
;
}
FIXME
(
"Do not know how to handle pvargResult %p. Expect crash ...
\n
"
,
pvargResult
);
hres
=
_invoke
((
*
(
DWORD
***
)
pvInstance
)[
oVft
/
4
],
cc
,
argsize
/
4
,
args
);
HeapFree
(
GetProcessHeap
(),
0
,
args
);
return
hres
;
}
static
HRESULT
WINAPI
ITypeInfo_fnInvoke
(
ITypeInfo2
*
iface
,
VOID
*
pIUnk
,
...
...
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