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
88f4fb1f
Commit
88f4fb1f
authored
Jun 29, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Jun 29, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Make connection points container independent.
parent
f09a6f72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
11 deletions
+14
-11
conpoint.c
dlls/mshtml/conpoint.c
+6
-5
htmldoc.c
dlls/mshtml/htmldoc.c
+6
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+2
-2
No files found.
dlls/mshtml/conpoint.c
View file @
88f4fb1f
...
...
@@ -75,13 +75,13 @@ static HRESULT WINAPI ConnectionPoint_QueryInterface(IConnectionPoint *iface,
static
ULONG
WINAPI
ConnectionPoint_AddRef
(
IConnectionPoint
*
iface
)
{
ConnectionPoint
*
This
=
CONPOINT_THIS
(
iface
);
return
I
HTMLDocument2_AddRef
(
HTMLDOC
(
This
->
doc
)
);
return
I
ConnectionPointContainer_AddRef
(
This
->
container
);
}
static
ULONG
WINAPI
ConnectionPoint_Release
(
IConnectionPoint
*
iface
)
{
ConnectionPoint
*
This
=
CONPOINT_THIS
(
iface
);
return
I
HTMLDocument2_Release
(
HTMLDOC
(
This
->
doc
)
);
return
I
ConnectionPointContainer_Release
(
This
->
container
);
}
static
HRESULT
WINAPI
ConnectionPoint_GetConnectionInterface
(
IConnectionPoint
*
iface
,
IID
*
pIID
)
...
...
@@ -107,7 +107,7 @@ static HRESULT WINAPI ConnectionPoint_GetConnectionPointContainer(IConnectionPoi
if
(
!
ppCPC
)
return
E_POINTER
;
*
ppCPC
=
CONPTCONT
(
&
This
->
doc
->
cp_container
)
;
*
ppCPC
=
This
->
container
;
IConnectionPointContainer_AddRef
(
*
ppCPC
);
return
S_OK
;
}
...
...
@@ -184,10 +184,11 @@ static const IConnectionPointVtbl ConnectionPointVtbl =
ConnectionPoint_EnumConnections
};
void
ConnectionPoint_Init
(
ConnectionPoint
*
cp
,
HTMLDocument
*
doc
,
REFIID
riid
,
ConnectionPoint
*
prev
)
void
ConnectionPoint_Init
(
ConnectionPoint
*
cp
,
IConnectionPointContainer
*
container
,
REFIID
riid
,
ConnectionPoint
*
prev
)
{
cp
->
lpConnectionPointVtbl
=
&
ConnectionPointVtbl
;
cp
->
doc
=
doc
;
cp
->
container
=
container
;
cp
->
sinks
=
NULL
;
cp
->
sinks_size
=
0
;
cp
->
iid
=
*
riid
;
...
...
dlls/mshtml/htmldoc.c
View file @
88f4fb1f
...
...
@@ -1142,10 +1142,12 @@ HRESULT HTMLDocument_Create(IUnknown *pUnkOuter, REFIID riid, void** ppvObject)
HTMLDocument_Service_Init
(
ret
);
HTMLDocument_Hlink_Init
(
ret
);
ConnectionPoint_Init
(
&
ret
->
cp_propnotif
,
ret
,
&
IID_IPropertyNotifySink
,
NULL
);
ConnectionPoint_Init
(
&
ret
->
cp_htmldocevents
,
ret
,
&
DIID_HTMLDocumentEvents
,
&
ret
->
cp_propnotif
);
ConnectionPoint_Init
(
&
ret
->
cp_htmldocevents2
,
ret
,
&
DIID_HTMLDocumentEvents2
,
&
ret
->
cp_htmldocevents
);
ConnectionPoint_Init
(
&
ret
->
cp_propnotif
,
CONPTCONT
(
&
ret
->
cp_container
),
&
IID_IPropertyNotifySink
,
NULL
);
ConnectionPoint_Init
(
&
ret
->
cp_htmldocevents
,
CONPTCONT
(
&
ret
->
cp_container
),
&
DIID_HTMLDocumentEvents
,
&
ret
->
cp_propnotif
);
ConnectionPoint_Init
(
&
ret
->
cp_htmldocevents2
,
CONPTCONT
(
&
ret
->
cp_container
),
&
DIID_HTMLDocumentEvents2
,
&
ret
->
cp_htmldocevents
);
ConnectionPointContainer_Init
(
&
ret
->
cp_container
,
&
ret
->
cp_propnotif
,
(
IUnknown
*
)
HTMLDOC
(
ret
));
ret
->
nscontainer
=
NSContainer_Create
(
ret
,
NULL
);
...
...
dlls/mshtml/mshtml_private.h
View file @
88f4fb1f
...
...
@@ -81,7 +81,7 @@ typedef struct {
struct
ConnectionPoint
{
const
IConnectionPointVtbl
*
lpConnectionPointVtbl
;
HTMLDocument
*
doc
;
IConnectionPointContainer
*
container
;
union
{
IUnknown
*
unk
;
...
...
@@ -346,7 +346,7 @@ void HTMLDocument_Window_Init(HTMLDocument*);
void
HTMLDocument_Service_Init
(
HTMLDocument
*
);
void
HTMLDocument_Hlink_Init
(
HTMLDocument
*
);
void
ConnectionPoint_Init
(
ConnectionPoint
*
,
HTMLDocument
*
,
REFIID
,
ConnectionPoint
*
);
void
ConnectionPoint_Init
(
ConnectionPoint
*
,
IConnectionPointContainer
*
,
REFIID
,
ConnectionPoint
*
);
void
ConnectionPointContainer_Init
(
ConnectionPointContainer
*
,
ConnectionPoint
*
,
IUnknown
*
);
void
ConnectionPointContainer_Destroy
(
ConnectionPointContainer
*
);
...
...
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