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
b26ed166
Commit
b26ed166
authored
Apr 19, 2006
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 20, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Move more initialization code to DocHost_Init.
parent
c355574d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
dochost.c
dlls/shdocvw/dochost.c
+6
-1
shdocvw.h
dlls/shdocvw/shdocvw.h
+1
-1
webbrowser.c
dlls/shdocvw/webbrowser.c
+1
-5
No files found.
dlls/shdocvw/dochost.c
View file @
b26ed166
...
...
@@ -478,16 +478,19 @@ static const IDocHostUIHandler2Vtbl DocHostUIHandler2Vtbl = {
DocHostUIHandler_GetOverrideKeyPath
};
void
DocHost_Init
(
DocHost
*
This
)
void
DocHost_Init
(
DocHost
*
This
,
IDispatch
*
disp
)
{
This
->
lpDocHostUIHandlerVtbl
=
&
DocHostUIHandler2Vtbl
;
This
->
lpOleCommandTargetVtbl
=
&
OleCommandTargetVtbl
;
This
->
disp
=
disp
;
This
->
document
=
NULL
;
This
->
hostui
=
NULL
;
This
->
hwnd
=
NULL
;
This
->
frame_hwnd
=
NULL
;
This
->
url
=
NULL
;
DocHost_ClientSite_Init
(
This
);
DocHost_Frame_Init
(
This
);
...
...
@@ -498,4 +501,6 @@ void DocHost_Release(DocHost *This)
{
DocHost_ClientSite_Release
(
This
);
DocHost_Events_Release
(
This
);
SysFreeString
(
This
->
url
);
}
dlls/shdocvw/shdocvw.h
View file @
b26ed166
...
...
@@ -153,7 +153,7 @@ void WebBrowser_HlinkFrame_Init(WebBrowser*);
void
WebBrowser_OleObject_Destroy
(
WebBrowser
*
);
void
DocHost_Init
(
DocHost
*
);
void
DocHost_Init
(
DocHost
*
,
IDispatch
*
);
void
DocHost_ClientSite_Init
(
DocHost
*
);
void
DocHost_Events_Init
(
DocHost
*
);
void
DocHost_Frame_Init
(
DocHost
*
);
...
...
dlls/shdocvw/webbrowser.c
View file @
b26ed166
...
...
@@ -132,7 +132,6 @@ static ULONG WINAPI WebBrowser_Release(IWebBrowser2 *iface)
WebBrowser_OleObject_Destroy
(
This
);
SysFreeString
(
This
->
doc_host
.
url
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
SHDOCVW_UnlockModule
();
}
...
...
@@ -844,10 +843,7 @@ HRESULT WebBrowser_Create(IUnknown *pOuter, REFIID riid, void **ppv)
ret
->
lpWebBrowser2Vtbl
=
&
WebBrowser2Vtbl
;
ret
->
ref
=
0
;
ret
->
doc_host
.
url
=
NULL
;
ret
->
doc_host
.
disp
=
(
IDispatch
*
)
WEBBROWSER2
(
ret
);
DocHost_Init
(
&
ret
->
doc_host
);
DocHost_Init
(
&
ret
->
doc_host
,
(
IDispatch
*
)
WEBBROWSER2
(
ret
));
WebBrowser_OleObject_Init
(
ret
);
WebBrowser_ViewObject_Init
(
ret
);
...
...
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