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
ed9c65b1
Commit
ed9c65b1
authored
Jan 03, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 03, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: COM cleanup for the IHTMLLocation iface.
parent
f2c4a122
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
41 deletions
+40
-41
htmllocation.c
dlls/mshtml/htmllocation.c
+35
-34
htmlwindow.c
dlls/mshtml/htmlwindow.c
+4
-4
mshtml_private.h
dlls/mshtml/mshtml_private.h
+1
-3
No files found.
dlls/mshtml/htmllocation.c
View file @
ed9c65b1
This diff is collapsed.
Click to expand it.
dlls/mshtml/htmlwindow.c
View file @
ed9c65b1
...
...
@@ -124,7 +124,7 @@ static void release_children(HTMLWindow *This)
static
HRESULT
get_location
(
HTMLWindow
*
This
,
HTMLLocation
**
ret
)
{
if
(
This
->
location
)
{
IHTMLLocation_AddRef
(
HTMLLOCATION
(
This
->
location
)
);
IHTMLLocation_AddRef
(
&
This
->
location
->
IHTMLLocation_iface
);
}
else
{
HRESULT
hres
;
...
...
@@ -249,7 +249,7 @@ static ULONG WINAPI HTMLWindow2_Release(IHTMLWindow2 *iface)
if
(
This
->
location
)
{
This
->
location
->
window
=
NULL
;
IHTMLLocation_Release
(
HTMLLOCATION
(
This
->
location
)
);
IHTMLLocation_Release
(
&
This
->
location
->
IHTMLLocation_iface
);
}
if
(
This
->
screen
)
...
...
@@ -688,7 +688,7 @@ static HRESULT WINAPI HTMLWindow2_get_location(IHTMLWindow2 *iface, IHTMLLocatio
if
(
FAILED
(
hres
))
return
hres
;
*
p
=
HTMLLOCATION
(
location
)
;
*
p
=
&
location
->
IHTMLLocation_iface
;
return
S_OK
;
}
...
...
@@ -1986,7 +1986,7 @@ static HRESULT WINAPI WindowDispEx_InvokeEx(IDispatchEx *iface, DISPID id, LCID
hres
=
IDispatchEx_InvokeEx
(
&
location
->
dispex
.
IDispatchEx_iface
,
DISPID_VALUE
,
lcid
,
wFlags
,
pdp
,
pvarRes
,
pei
,
pspCaller
);
IHTMLLocation_Release
(
HTMLLOCATION
(
location
)
);
IHTMLLocation_Release
(
&
location
->
IHTMLLocation_iface
);
return
hres
;
}
...
...
dlls/mshtml/mshtml_private.h
View file @
ed9c65b1
...
...
@@ -246,7 +246,7 @@ typedef struct {
struct
HTMLLocation
{
DispatchEx
dispex
;
const
IHTMLLocationVtbl
*
lpHTMLLocationVtbl
;
IHTMLLocation
IHTMLLocation_iface
;
LONG
ref
;
...
...
@@ -630,8 +630,6 @@ struct HTMLDocumentNode {
#define STATUSCLB(x) ((IBindStatusCallback*) &(x)->lpBindStatusCallbackVtbl)
#define BINDINFO(x) ((IInternetBindInfo*) &(x)->lpInternetBindInfoVtbl);
#define HTMLLOCATION(x) ((IHTMLLocation*) &(x)->lpHTMLLocationVtbl)
#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl)))
HRESULT
HTMLDocument_Create
(
IUnknown
*
,
REFIID
,
void
**
);
...
...
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