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
f58d9a94
Commit
f58d9a94
authored
Nov 12, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Reimplement IUnknown_CPContainerInvokeParam on top of SHPackDispParams.
parent
114e8485
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
45 deletions
+8
-45
ordinal.c
dlls/shlwapi/ordinal.c
+8
-45
No files found.
dlls/shlwapi/ordinal.c
View file @
f58d9a94
...
...
@@ -2986,64 +2986,27 @@ HRESULT WINAPIV IUnknown_CPContainerInvokeParam(
HRESULT
result
;
IConnectionPoint
*
iCP
;
IConnectionPointContainer
*
iCPC
;
DISPPARAMS
dispParams
=
{
buffer
,
NULL
,
cParams
,
0
};
va_list
valist
;
if
(
!
container
)
return
E_NOINTERFACE
;
result
=
IUnknown_QueryInterface
(
container
,
&
IID_IConnectionPointContainer
,(
LPVOID
*
)
&
iCPC
);
if
(
SUCCEEDED
(
result
))
{
if
(
FAILED
(
result
))
return
result
;
result
=
IConnectionPointContainer_FindConnectionPoint
(
iCPC
,
riid
,
&
iCP
);
IConnectionPointContainer_Release
(
iCPC
);
}
if
(
SUCCEEDED
(
result
))
{
ULONG
cnt
;
VARIANTARG
*
curvar
=
buffer
+
cParams
-
1
;
DISPPARAMS
dispParams
=
{
buffer
,
NULL
,
cParams
,
0
};
va_list
valist
;
if
(
FAILED
(
result
))
return
result
;
va_start
(
valist
,
cParams
);
for
(
cnt
=
cParams
;
cnt
>
0
;
cnt
--
,
curvar
--
)
/* backwards for some reason */
{
enum
VARENUM
vt
=
va_arg
(
valist
,
enum
VARENUM
);
memset
(
curvar
,
0
,
sizeof
(
*
curvar
));
if
(
vt
&
VT_BYREF
)
{
V_VT
(
curvar
)
=
vt
;
V_BYREF
(
curvar
)
=
va_arg
(
valist
,
LPVOID
);
}
else
switch
(
vt
)
{
case
VT_BSTR
:
V_VT
(
curvar
)
=
vt
;
V_BSTR
(
curvar
)
=
va_arg
(
valist
,
BSTR
);
break
;
case
VT_DISPATCH
:
V_VT
(
curvar
)
=
vt
;
V_DISPATCH
(
curvar
)
=
va_arg
(
valist
,
IDispatch
*
);
break
;
case
VT_BOOL
:
V_VT
(
curvar
)
=
vt
;
V_BOOL
(
curvar
)
=
va_arg
(
valist
,
int
);
break
;
case
VT_UNKNOWN
:
V_VT
(
curvar
)
=
vt
;
V_UNKNOWN
(
curvar
)
=
va_arg
(
valist
,
IUnknown
*
);
break
;
case
VT_I4
:
default:
V_VT
(
curvar
)
=
VT_I4
;
V_I4
(
curvar
)
=
va_arg
(
valist
,
LONG
);
break
;
}
}
SHPackDispParamsV
(
&
dispParams
,
buffer
,
cParams
,
valist
);
va_end
(
valist
);
result
=
SHLWAPI_InvokeByIID
(
iCP
,
riid
,
dispId
,
&
dispParams
);
IConnectionPoint_Release
(
iCP
);
}
return
result
;
}
...
...
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