Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
1bd4bbb5
Commit
1bd4bbb5
authored
22 years ago
by
Marcus Meissner
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Draft implementation of DispCallFunc.
parent
ac36f950
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/oleaut32/oleaut32.spec
+1
-1
1 addition, 1 deletion
dlls/oleaut32/oleaut32.spec
dlls/oleaut32/typelib.c
+46
-0
46 additions, 0 deletions
dlls/oleaut32/typelib.c
with
47 additions
and
1 deletion
dlls/oleaut32/oleaut32.spec
+
1
−
1
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
...
...
This diff is collapsed.
Click to expand it.
dlls/oleaut32/typelib.c
+
46
−
0
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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment