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
23c87ba8
Commit
23c87ba8
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 htmlnode.c (coverity).
parent
b6227fc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
htmlnode.c
dlls/mshtml/htmlnode.c
+5
-3
No files found.
dlls/mshtml/htmlnode.c
View file @
23c87ba8
...
...
@@ -282,6 +282,9 @@ static IHTMLDOMChildrenCollection *create_child_collection(HTMLDocumentNode *doc
HTMLDOMChildrenCollection
*
ret
;
ret
=
heap_alloc_zero
(
sizeof
(
*
ret
));
if
(
!
ret
)
return
NULL
;
ret
->
IHTMLDOMChildrenCollection_iface
.
lpVtbl
=
&
HTMLDOMChildrenCollectionVtbl
;
ret
->
ref
=
1
;
...
...
@@ -468,7 +471,7 @@ static HRESULT WINAPI HTMLDOMNode_get_childNodes(IHTMLDOMNode *iface, IDispatch
*
p
=
(
IDispatch
*
)
create_child_collection
(
This
->
doc
,
nslist
);
nsIDOMNodeList_Release
(
nslist
);
return
S_OK
;
return
*
p
?
S_OK
:
E_OUTOFMEMORY
;
}
static
HRESULT
WINAPI
HTMLDOMNode_get_attributes
(
IHTMLDOMNode
*
iface
,
IDispatch
**
p
)
...
...
@@ -1072,8 +1075,7 @@ void HTMLDOMNode_Init(HTMLDocumentNode *doc, HTMLDOMNode *node, nsIDOMNode *nsno
htmldoc_addref
(
&
doc
->
basedoc
);
node
->
doc
=
doc
;
if
(
nsnode
)
nsIDOMNode_AddRef
(
nsnode
);
nsIDOMNode_AddRef
(
nsnode
);
node
->
nsnode
=
nsnode
;
nsres
=
nsIDOMNode_SetMshtmlNode
(
nsnode
,
(
nsISupports
*
)
&
node
->
IHTMLDOMNode_iface
);
...
...
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