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
3a4a4acd
Commit
3a4a4acd
authored
Oct 19, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 19, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Properly handle OOM errors in omnavigator.c (coverity).
parent
4638fbf1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
htmlwindow.c
dlls/mshtml/htmlwindow.c
+1
-1
omnavigator.c
dlls/mshtml/omnavigator.c
+3
-0
No files found.
dlls/mshtml/htmlwindow.c
View file @
3a4a4acd
...
...
@@ -803,7 +803,7 @@ static HRESULT WINAPI HTMLWindow2_get_navigator(IHTMLWindow2 *iface, IOmNavigato
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
p
);
*
p
=
OmNavigator_Create
();
return
S_OK
;
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
HTMLWindow2_put_name
(
IHTMLWindow2
*
iface
,
BSTR
v
)
...
...
dlls/mshtml/omnavigator.c
View file @
3a4a4acd
...
...
@@ -941,6 +941,9 @@ IOmNavigator *OmNavigator_Create(void)
OmNavigator
*
ret
;
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
if
(
!
ret
)
return
NULL
;
ret
->
IOmNavigator_iface
.
lpVtbl
=
&
OmNavigatorVtbl
;
ret
->
ref
=
1
;
...
...
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