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
a8a1a2da
Commit
a8a1a2da
authored
Nov 20, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 20, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Added WebBrowser::get_Application implementation.
parent
075e84bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
webbrowser.c
dlls/shdocvw/tests/webbrowser.c
+13
-0
webbrowser.c
dlls/shdocvw/webbrowser.c
+9
-2
No files found.
dlls/shdocvw/tests/webbrowser.c
View file @
a8a1a2da
...
...
@@ -984,6 +984,7 @@ static void test_ClassInfo(IUnknown *unk)
static
void
test_ie_funcs
(
IUnknown
*
unk
)
{
IWebBrowser2
*
wb
;
IDispatch
*
disp
;
VARIANT_BOOL
b
;
int
i
;
long
hwnd
;
...
...
@@ -1134,6 +1135,18 @@ static void test_ie_funcs(IUnknown *unk)
ok
(
hres
==
E_NOTIMPL
,
"get_Resizable failed: %08x
\n
"
,
hres
);
ok
(
b
==
0x100
,
"b=%x
\n
"
,
b
);
/* Application */
disp
=
NULL
;
hres
=
IWebBrowser2_get_Application
(
wb
,
&
disp
);
ok
(
hres
==
S_OK
,
"get_Application failed: %08x
\n
"
,
hres
);
ok
(
disp
==
(
void
*
)
wb
,
"disp=%p, expected %p
\n
"
,
disp
,
wb
);
if
(
disp
)
IDispatch_Release
(
disp
);
hres
=
IWebBrowser2_get_Application
(
wb
,
NULL
);
ok
(
hres
==
E_POINTER
,
"get_Application failed: %08x, expected E_POINTER
\n
"
,
hres
);
IWebBrowser2_Release
(
wb
);
}
...
...
dlls/shdocvw/webbrowser.c
View file @
a8a1a2da
...
...
@@ -260,8 +260,15 @@ static HRESULT WINAPI WebBrowser_Stop(IWebBrowser2 *iface)
static
HRESULT
WINAPI
WebBrowser_get_Application
(
IWebBrowser2
*
iface
,
IDispatch
**
ppDisp
)
{
WebBrowser
*
This
=
WEBBROWSER_THIS
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
ppDisp
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppDisp
);
if
(
!
ppDisp
)
return
E_POINTER
;
*
ppDisp
=
(
IDispatch
*
)
WEBBROWSER2
(
This
);
IDispatch_AddRef
(
*
ppDisp
);
return
S_OK
;
}
static
HRESULT
WINAPI
WebBrowser_get_Parent
(
IWebBrowser2
*
iface
,
IDispatch
**
ppDisp
)
...
...
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