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
56d1a7c0
Commit
56d1a7c0
authored
Dec 10, 2009
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Rename ConnectToConnectionPoint bAdviseOnly to fConnect as MSDN.
parent
0926dd96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
ordinal.c
dlls/shlwapi/ordinal.c
+5
-4
No files found.
dlls/shlwapi/ordinal.c
View file @
56d1a7c0
...
@@ -1128,7 +1128,7 @@ HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
...
@@ -1128,7 +1128,7 @@ HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
* PARAMS
* PARAMS
* lpUnkSink [I] Sink for the connection point advise call
* lpUnkSink [I] Sink for the connection point advise call
* riid [I] REFIID of connection point to advise
* riid [I] REFIID of connection point to advise
*
bAdviseOnly [I] TRUE = Advise only, FALSE = Unadvise first
*
fConnect [I] TRUE = Connection being establisted, FALSE = broken
* lpUnknown [I] Object supporting the IConnectionPointContainer interface
* lpUnknown [I] Object supporting the IConnectionPointContainer interface
* lpCookie [O] Pointer to connection point cookie
* lpCookie [O] Pointer to connection point cookie
* lppCP [O] Destination for the IConnectionPoint found
* lppCP [O] Destination for the IConnectionPoint found
...
@@ -1140,7 +1140,7 @@ HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
...
@@ -1140,7 +1140,7 @@ HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
* E_NOINTERFACE, if lpUnknown isn't an IConnectionPointContainer,
* E_NOINTERFACE, if lpUnknown isn't an IConnectionPointContainer,
* Or an HRESULT error code if any call fails.
* Or an HRESULT error code if any call fails.
*/
*/
HRESULT
WINAPI
ConnectToConnectionPoint
(
IUnknown
*
lpUnkSink
,
REFIID
riid
,
BOOL
bAdviseOnly
,
HRESULT
WINAPI
ConnectToConnectionPoint
(
IUnknown
*
lpUnkSink
,
REFIID
riid
,
BOOL
fConnect
,
IUnknown
*
lpUnknown
,
LPDWORD
lpCookie
,
IUnknown
*
lpUnknown
,
LPDWORD
lpCookie
,
IConnectionPoint
**
lppCP
)
IConnectionPoint
**
lppCP
)
{
{
...
@@ -1148,7 +1148,7 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL b
...
@@ -1148,7 +1148,7 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL b
IConnectionPointContainer
*
lpContainer
;
IConnectionPointContainer
*
lpContainer
;
IConnectionPoint
*
lpCP
;
IConnectionPoint
*
lpCP
;
if
(
!
lpUnknown
||
(
bAdviseOnly
&&
!
lpUnkSink
))
if
(
!
lpUnknown
||
(
fConnect
&&
!
lpUnkSink
))
return
E_FAIL
;
return
E_FAIL
;
if
(
lppCP
)
if
(
lppCP
)
...
@@ -1162,8 +1162,9 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL b
...
@@ -1162,8 +1162,9 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL b
if
(
SUCCEEDED
(
hRet
))
if
(
SUCCEEDED
(
hRet
))
{
{
if
(
!
bAdviseOnly
)
if
(
!
fConnect
)
hRet
=
IConnectionPoint_Unadvise
(
lpCP
,
*
lpCookie
);
hRet
=
IConnectionPoint_Unadvise
(
lpCP
,
*
lpCookie
);
else
hRet
=
IConnectionPoint_Advise
(
lpCP
,
lpUnkSink
,
lpCookie
);
hRet
=
IConnectionPoint_Advise
(
lpCP
,
lpUnkSink
,
lpCookie
);
if
(
FAILED
(
hRet
))
if
(
FAILED
(
hRet
))
...
...
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