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
2e24de63
Commit
2e24de63
authored
Dec 27, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 27, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: COM cleanup for the IHTMLWindow2 iface.
parent
1bffb577
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
20 additions
and
21 deletions
+20
-21
htmldoc.c
dlls/mshtml/htmldoc.c
+6
-6
htmlframe.c
dlls/mshtml/htmlframe.c
+1
-1
htmlframebase.c
dlls/mshtml/htmlframebase.c
+2
-2
htmlwindow.c
dlls/mshtml/htmlwindow.c
+0
-0
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-2
nsio.c
dlls/mshtml/nsio.c
+6
-6
nsservice.c
dlls/mshtml/nsservice.c
+1
-1
oleobj.c
dlls/mshtml/oleobj.c
+1
-1
persist.c
dlls/mshtml/persist.c
+1
-1
script.c
dlls/mshtml/script.c
+1
-1
No files found.
dlls/mshtml/htmldoc.c
View file @
2e24de63
...
...
@@ -105,7 +105,7 @@ static HRESULT WINAPI HTMLDocument_get_Script(IHTMLDocument2 *iface, IDispatch *
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
(
IDispatch
*
)
HTMLWINDOW2
(
This
->
window
)
;
*
p
=
(
IDispatch
*
)
&
This
->
window
->
IHTMLWindow2_iface
;
IDispatch_AddRef
(
*
p
);
return
S_OK
;
}
...
...
@@ -579,7 +579,7 @@ static HRESULT WINAPI HTMLDocument_get_location(IHTMLDocument2 *iface, IHTMLLoca
return
E_UNEXPECTED
;
}
return
IHTMLWindow2_get_location
(
HTMLWINDOW2
(
This
->
window
)
,
p
);
return
IHTMLWindow2_get_location
(
&
This
->
window
->
IHTMLWindow2_iface
,
p
);
}
static
HRESULT
WINAPI
HTMLDocument_get_lastModified
(
IHTMLDocument2
*
iface
,
BSTR
*
p
)
...
...
@@ -872,8 +872,8 @@ static HRESULT WINAPI HTMLDocument_open(IHTMLDocument2 *iface, BSTR url, VARIANT
return
E_FAIL
;
}
*
pomWindowResult
=
(
IDispatch
*
)
HTMLWINDOW2
(
This
->
window
)
;
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
This
->
window
)
);
*
pomWindowResult
=
(
IDispatch
*
)
&
This
->
window
->
IHTMLWindow2_iface
;
IHTMLWindow2_AddRef
(
&
This
->
window
->
IHTMLWindow2_iface
);
return
S_OK
;
}
...
...
@@ -1302,7 +1302,7 @@ static HRESULT WINAPI HTMLDocument_get_parentWindow(IHTMLDocument2 *iface, IHTML
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
HTMLWINDOW2
(
This
->
window
)
;
*
p
=
&
This
->
window
->
IHTMLWindow2_iface
;
IHTMLWindow2_AddRef
(
*
p
);
return
S_OK
;
}
...
...
@@ -2097,7 +2097,7 @@ static ULONG WINAPI CustomDoc_Release(ICustomDoc *iface)
}
if
(
This
->
basedoc
.
window
)
{
This
->
basedoc
.
window
->
doc_obj
=
NULL
;
IHTMLWindow2_Release
(
HTMLWINDOW2
(
This
->
basedoc
.
window
)
);
IHTMLWindow2_Release
(
&
This
->
basedoc
.
window
->
IHTMLWindow2_iface
);
}
if
(
This
->
basedoc
.
advise_holder
)
IOleAdviseHolder_Release
(
This
->
basedoc
.
advise_holder
);
...
...
dlls/mshtml/htmlframe.c
View file @
2e24de63
...
...
@@ -105,7 +105,7 @@ static HRESULT WINAPI HTMLFrameElement3_get_contentDocument(IHTMLFrameElement3 *
return
E_FAIL
;
}
hres
=
IHTMLWindow2_get_document
(
HTMLWINDOW2
(
This
->
framebase
.
content_window
)
,
&
doc
);
hres
=
IHTMLWindow2_get_document
(
&
This
->
framebase
.
content_window
->
IHTMLWindow2_iface
,
&
doc
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/mshtml/htmlframebase.c
View file @
2e24de63
...
...
@@ -430,8 +430,8 @@ static HRESULT WINAPI HTMLFrameBase2_get_contentWindow(IHTMLFrameBase2 *iface, I
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
if
(
This
->
content_window
)
{
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
This
->
content_window
)
);
*
p
=
HTMLWINDOW2
(
This
->
content_window
)
;
IHTMLWindow2_AddRef
(
&
This
->
content_window
->
IHTMLWindow2_iface
);
*
p
=
&
This
->
content_window
->
IHTMLWindow2_iface
;
}
else
{
WARN
(
"NULL content window
\n
"
);
*
p
=
NULL
;
...
...
dlls/mshtml/htmlwindow.c
View file @
2e24de63
This diff is collapsed.
Click to expand it.
dlls/mshtml/mshtml_private.h
View file @
2e24de63
...
...
@@ -260,7 +260,7 @@ typedef struct nsChannelBSC nsChannelBSC;
struct
HTMLWindow
{
DispatchEx
dispex
;
const
IHTMLWindow2Vtbl
*
lpHTMLWindow2Vtbl
;
IHTMLWindow2
IHTMLWindow2_iface
;
const
IHTMLWindow3Vtbl
*
lpHTMLWindow3Vtbl
;
const
IHTMLWindow4Vtbl
*
lpHTMLWindow4Vtbl
;
const
IHTMLPrivateWindowVtbl
*
lpIHTMLPrivateWindowVtbl
;
...
...
@@ -622,7 +622,6 @@ struct HTMLDocumentNode {
struct
list
plugin_hosts
;
};
#define HTMLWINDOW2(x) ((IHTMLWindow2*) &(x)->lpHTMLWindow2Vtbl)
#define HTMLWINDOW3(x) ((IHTMLWindow3*) &(x)->lpHTMLWindow3Vtbl)
#define HTMLWINDOW4(x) ((IHTMLWindow4*) &(x)->lpHTMLWindow4Vtbl)
#define CONPTCONT(x) ((IConnectionPointContainer*) &(x)->lpConnectionPointContainerVtbl)
...
...
dlls/mshtml/nsio.c
View file @
2e24de63
...
...
@@ -808,7 +808,7 @@ static HTMLWindow *get_window_from_load_group(nsChannel *This)
window
=
wine_uri
->
window_ref
?
wine_uri
->
window_ref
->
window
:
NULL
;
if
(
window
)
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
window
)
);
IHTMLWindow2_AddRef
(
&
window
->
IHTMLWindow2_iface
);
nsIURI_Release
(
NSURI
(
wine_uri
));
return
window
;
...
...
@@ -858,7 +858,7 @@ static HTMLWindow *get_channel_window(nsChannel *This)
nsIDOMWindow_Release
(
nswindow
);
if
(
window
)
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
window
)
);
IHTMLWindow2_AddRef
(
&
window
->
IHTMLWindow2_iface
);
else
FIXME
(
"NULL window for %p
\n
"
,
nswindow
);
return
window
;
...
...
@@ -948,7 +948,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
if
(
!
window
)
{
if
(
This
->
uri
->
window_ref
&&
This
->
uri
->
window_ref
->
window
)
{
window
=
This
->
uri
->
window_ref
->
window
;
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
window
)
);
IHTMLWindow2_AddRef
(
&
window
->
IHTMLWindow2_iface
);
}
else
{
/* FIXME: Analyze removing get_window_from_load_group call */
if
(
This
->
load_group
)
...
...
@@ -993,7 +993,7 @@ static nsresult NSAPI nsChannel_AsyncOpen(nsIHttpChannel *iface, nsIStreamListen
ERR
(
"AddRequest failed: %08x
\n
"
,
nsres
);
}
IHTMLWindow2_Release
(
HTMLWINDOW2
(
window
)
);
IHTMLWindow2_Release
(
&
window
->
IHTMLWindow2_iface
);
return
nsres
;
}
...
...
@@ -2722,7 +2722,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
base_wine_url
=
base_wine_uri
->
wine_url
;
if
(
base_wine_uri
->
window_ref
&&
base_wine_uri
->
window_ref
->
window
)
{
window
=
base_wine_uri
->
window_ref
->
window
;
IHTMLWindow2_AddRef
(
HTMLWINDOW2
(
window
)
);
IHTMLWindow2_AddRef
(
&
window
->
IHTMLWindow2_iface
);
}
TRACE
(
"base url: %s window: %p
\n
"
,
debugstr_w
(
base_wine_url
),
window
);
}
else
if
(
FAILED
(
ParseURLA
(
spec
,
&
parsed_url
)))
{
...
...
@@ -2743,7 +2743,7 @@ static nsresult NSAPI nsIOService_NewURI(nsIIOService *iface, const nsACString *
*
_retval
=
(
nsIURI
*
)
wine_uri
;
if
(
window
)
IHTMLWindow2_Release
(
HTMLWINDOW2
(
window
)
);
IHTMLWindow2_Release
(
&
window
->
IHTMLWindow2_iface
);
if
(
base_wine_url
)
{
WCHAR
url
[
INTERNET_MAX_URL_LENGTH
],
rel_url
[
INTERNET_MAX_URL_LENGTH
];
...
...
dlls/mshtml/nsservice.c
View file @
2e24de63
...
...
@@ -158,7 +158,7 @@ static nsresult NSAPI nsPromptService_Alert(nsIPromptService *iface, nsIDOMWindo
}
text
=
SysAllocString
(
aText
);
IHTMLWindow2_alert
(
HTMLWINDOW2
(
window
)
,
text
);
IHTMLWindow2_alert
(
&
window
->
IHTMLWindow2_iface
,
text
);
SysFreeString
(
text
);
return
NS_OK
;
...
...
dlls/mshtml/oleobj.c
View file @
2e24de63
...
...
@@ -199,7 +199,7 @@ static HRESULT WINAPI OleObject_SetClientSite(IOleObject *iface, IOleClientSite
if
(
!
hostui_setup
)
{
V_VT
(
&
var
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
HTMLWINDOW2
(
This
->
window
)
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
&
This
->
window
->
IHTMLWindow2_iface
;
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_DocHostCmdPriv
,
DOCHOST_DOCCANNAVIGATE
,
0
,
&
var
,
NULL
);
}
...
...
dlls/mshtml/persist.c
View file @
2e24de63
...
...
@@ -233,7 +233,7 @@ HRESULT set_moniker(HTMLDocument *This, IMoniker *mon, IBindCtx *pibc, nsChannel
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_ShellDocView
,
37
,
0
,
&
var
,
NULL
);
}
else
{
V_VT
(
&
var
)
=
VT_UNKNOWN
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
HTMLWINDOW2
(
This
->
window
)
;
V_UNKNOWN
(
&
var
)
=
(
IUnknown
*
)
&
This
->
window
->
IHTMLWindow2_iface
;
V_VT
(
&
out
)
=
VT_EMPTY
;
hres
=
IOleCommandTarget_Exec
(
cmdtrg
,
&
CGID_ShellDocView
,
63
,
0
,
&
var
,
&
out
);
if
(
SUCCEEDED
(
hres
))
...
...
dlls/mshtml/script.c
View file @
2e24de63
...
...
@@ -321,7 +321,7 @@ static HRESULT WINAPI ActiveScriptSite_GetItemInfo(IActiveScriptSite *iface, LPC
return
E_FAIL
;
/* FIXME: Return proxy object */
*
ppiunkItem
=
(
IUnknown
*
)
HTMLWINDOW2
(
This
->
window
)
;
*
ppiunkItem
=
(
IUnknown
*
)
&
This
->
window
->
IHTMLWindow2_iface
;
IUnknown_AddRef
(
*
ppiunkItem
);
return
S_OK
;
...
...
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