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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
ordinal.c
dlls/shlwapi/ordinal.c
+6
-5
No files found.
dlls/shlwapi/ordinal.c
View file @
56d1a7c0
...
...
@@ -1128,7 +1128,7 @@ HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
* PARAMS
* lpUnkSink [I] Sink for the connection point advise call
* 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
* lpCookie [O] Pointer to connection point cookie
* lppCP [O] Destination for the IConnectionPoint found
...
...
@@ -1140,7 +1140,7 @@ HWND WINAPI SHSetParentHwnd(HWND hWnd, HWND hWndParent)
* E_NOINTERFACE, if lpUnknown isn't an IConnectionPointContainer,
* 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
,
IConnectionPoint
**
lppCP
)
{
...
...
@@ -1148,7 +1148,7 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL b
IConnectionPointContainer
*
lpContainer
;
IConnectionPoint
*
lpCP
;
if
(
!
lpUnknown
||
(
bAdviseOnly
&&
!
lpUnkSink
))
if
(
!
lpUnknown
||
(
fConnect
&&
!
lpUnkSink
))
return
E_FAIL
;
if
(
lppCP
)
...
...
@@ -1162,9 +1162,10 @@ HRESULT WINAPI ConnectToConnectionPoint(IUnknown* lpUnkSink, REFIID riid, BOOL b
if
(
SUCCEEDED
(
hRet
))
{
if
(
!
bAdviseOnly
)
if
(
!
fConnect
)
hRet
=
IConnectionPoint_Unadvise
(
lpCP
,
*
lpCookie
);
hRet
=
IConnectionPoint_Advise
(
lpCP
,
lpUnkSink
,
lpCookie
);
else
hRet
=
IConnectionPoint_Advise
(
lpCP
,
lpUnkSink
,
lpCookie
);
if
(
FAILED
(
hRet
))
*
lpCookie
=
0
;
...
...
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