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
bf83d755
Commit
bf83d755
authored
May 29, 2020
by
Jacek Caban
Committed by
Alexandre Julliard
May 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ieframe: Return S_FALSE in IWebBrowser2::get_Document when returning NULL.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
58f46803
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
webbrowser.c
dlls/ieframe/tests/webbrowser.c
+6
-0
webbrowser.c
dlls/ieframe/webbrowser.c
+1
-1
No files found.
dlls/ieframe/tests/webbrowser.c
View file @
bf83d755
...
...
@@ -4056,6 +4056,7 @@ static void test_SetAdvise(void)
IViewObject2
*
view
;
IAdviseSink
*
sink
;
IOleObject
*
oleobj
;
IDispatch
*
doc
;
DWORD
aspects
,
flags
;
if
(
!
(
browser
=
create_webbrowser
()))
return
;
...
...
@@ -4115,6 +4116,11 @@ static void test_SetAdvise(void)
hr
=
IViewObject2_SetAdvise
(
view
,
0
,
0
,
NULL
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
doc
=
(
void
*
)
0xdeadbeef
;
hr
=
IWebBrowser2_get_Document
(
browser
,
&
doc
);
ok
(
hr
==
S_FALSE
,
"get_Document failed: %08x
\n
"
,
hr
);
ok
(
!
doc
,
"doc = %p
\n
"
,
doc
);
IOleObject_Release
(
oleobj
);
IViewObject2_Release
(
view
);
IWebBrowser2_Release
(
browser
);
...
...
dlls/ieframe/webbrowser.c
View file @
bf83d755
...
...
@@ -404,7 +404,7 @@ static HRESULT WINAPI WebBrowser_get_Document(IWebBrowser2 *iface, IDispatch **p
}
*
ppDisp
=
disp
;
return
S_OK
;
return
disp
?
S_OK
:
S_FALSE
;
}
static
HRESULT
WINAPI
WebBrowser_get_TopLevelContainer
(
IWebBrowser2
*
iface
,
VARIANT_BOOL
*
pBool
)
...
...
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