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
38b14274
Commit
38b14274
authored
Apr 23, 2008
by
Jacek Caban
Committed by
Alexandre Julliard
Apr 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Use heap_alloc_zero for allocating node objects.
parent
e610d2ff
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
10 additions
and
11 deletions
+10
-11
htmlanchor.c
dlls/mshtml/htmlanchor.c
+1
-1
htmlbody.c
dlls/mshtml/htmlbody.c
+1
-1
htmlelem.c
dlls/mshtml/htmlelem.c
+1
-1
htmlinput.c
dlls/mshtml/htmlinput.c
+1
-1
htmlnode.c
dlls/mshtml/htmlnode.c
+1
-2
htmloption.c
dlls/mshtml/htmloption.c
+1
-1
htmlscript.c
dlls/mshtml/htmlscript.c
+1
-1
htmlselect.c
dlls/mshtml/htmlselect.c
+1
-1
htmltable.c
dlls/mshtml/htmltable.c
+1
-1
htmltextarea.c
dlls/mshtml/htmltextarea.c
+1
-1
No files found.
dlls/mshtml/htmlanchor.c
View file @
38b14274
...
...
@@ -481,7 +481,7 @@ static const NodeImplVtbl HTMLAnchorElementImplVtbl = {
HTMLElement
*
HTMLAnchorElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLAnchorElement
*
ret
=
heap_alloc
(
sizeof
(
HTMLAnchorElement
));
HTMLAnchorElement
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLAnchorElement
));
HTMLElement_Init
(
&
ret
->
element
);
...
...
dlls/mshtml/htmlbody.c
View file @
38b14274
...
...
@@ -598,7 +598,7 @@ static const NodeImplVtbl HTMLBodyElementImplVtbl = {
HTMLElement
*
HTMLBodyElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLBodyElement
*
ret
=
heap_alloc
(
sizeof
(
HTMLBodyElement
));
HTMLBodyElement
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLBodyElement
));
nsresult
nsres
;
TRACE
(
"(%p)->(%p)
\n
"
,
ret
,
nselem
);
...
...
dlls/mshtml/htmlelem.c
View file @
38b14274
...
...
@@ -1336,7 +1336,7 @@ HTMLElement *HTMLElement_Create(nsIDOMNode *nsnode)
ret
=
HTMLTextAreaElement_Create
(
nselem
);
if
(
!
ret
)
{
ret
=
heap_alloc
(
sizeof
(
HTMLElement
));
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLElement
));
HTMLElement_Init
(
ret
);
}
...
...
dlls/mshtml/htmlinput.c
View file @
38b14274
...
...
@@ -1055,7 +1055,7 @@ static const NodeImplVtbl HTMLInputElementImplVtbl = {
HTMLElement
*
HTMLInputElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLInputElement
*
ret
=
heap_alloc
(
sizeof
(
HTMLInputElement
));
HTMLInputElement
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLInputElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
...
...
dlls/mshtml/htmlnode.c
View file @
38b14274
...
...
@@ -352,14 +352,13 @@ static HTMLDOMNode *create_node(HTMLDocument *doc, nsIDOMNode *nsnode)
ret
=
&
HTMLElement_Create
(
nsnode
)
->
node
;
break
;
default:
ret
=
heap_alloc
(
sizeof
(
HTMLDOMNode
));
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLDOMNode
));
ret
->
vtbl
=
&
HTMLDOMNodeImplVtbl
;
}
ret
->
lpHTMLDOMNodeVtbl
=
&
HTMLDOMNodeVtbl
;
ret
->
ref
=
1
;
ret
->
doc
=
doc
;
ret
->
event_target
=
NULL
;
nsIDOMNode_AddRef
(
nsnode
);
ret
->
nsnode
=
nsnode
;
...
...
dlls/mshtml/htmloption.c
View file @
38b14274
...
...
@@ -333,7 +333,7 @@ static const NodeImplVtbl HTMLOptionElementImplVtbl = {
HTMLElement
*
HTMLOptionElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLOptionElement
*
ret
=
heap_alloc
(
sizeof
(
HTMLOptionElement
));
HTMLOptionElement
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLOptionElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
...
...
dlls/mshtml/htmlscript.c
View file @
38b14274
...
...
@@ -288,7 +288,7 @@ static const NodeImplVtbl HTMLScriptElementImplVtbl = {
HTMLElement
*
HTMLScriptElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLScriptElement
*
ret
=
heap_alloc
(
sizeof
(
HTMLScriptElement
));
HTMLScriptElement
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLScriptElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
...
...
dlls/mshtml/htmlselect.c
View file @
38b14274
...
...
@@ -422,7 +422,7 @@ static const NodeImplVtbl HTMLSelectElementImplVtbl = {
HTMLElement
*
HTMLSelectElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLSelectElement
*
ret
=
heap_alloc
(
sizeof
(
HTMLSelectElement
));
HTMLSelectElement
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLSelectElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
...
...
dlls/mshtml/htmltable.c
View file @
38b14274
...
...
@@ -546,7 +546,7 @@ static const NodeImplVtbl HTMLTableImplVtbl = {
HTMLElement
*
HTMLTable_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLTable
*
ret
=
heap_alloc
(
sizeof
(
HTMLTable
));
HTMLTable
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLTable
));
HTMLElement_Init
(
&
ret
->
element
);
...
...
dlls/mshtml/htmltextarea.c
View file @
38b14274
...
...
@@ -402,7 +402,7 @@ static const NodeImplVtbl HTMLTextAreaElementImplVtbl = {
HTMLElement
*
HTMLTextAreaElement_Create
(
nsIDOMHTMLElement
*
nselem
)
{
HTMLTextAreaElement
*
ret
=
heap_alloc
(
sizeof
(
HTMLTextAreaElement
));
HTMLTextAreaElement
*
ret
=
heap_alloc
_zero
(
sizeof
(
HTMLTextAreaElement
));
nsresult
nsres
;
HTMLElement_Init
(
&
ret
->
element
);
...
...
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