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
e934d847
Commit
e934d847
authored
Aug 04, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Aug 04, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Added error handling to get_doc_string.
parent
0bbc95e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
persist.c
dlls/mshtml/persist.c
+8
-1
No files found.
dlls/mshtml/persist.c
View file @
e934d847
...
...
@@ -334,6 +334,7 @@ static HRESULT get_doc_string(HTMLDocumentNode *This, char **str)
LPCWSTR
strw
;
nsAString
nsstr
;
nsresult
nsres
;
HRESULT
hres
;
if
(
!
This
->
nsdoc
)
{
WARN
(
"NULL nsdoc
\n
"
);
...
...
@@ -347,8 +348,12 @@ static HRESULT get_doc_string(HTMLDocumentNode *This, char **str)
}
nsAString_Init
(
&
nsstr
,
NULL
);
nsnode_to_nsstring
(
nsnode
,
&
nsstr
);
hres
=
nsnode_to_nsstring
(
nsnode
,
&
nsstr
);
nsIDOMNode_Release
(
nsnode
);
if
(
FAILED
(
hres
))
{
nsAString_Finish
(
&
nsstr
);
return
hres
;
}
nsAString_GetData
(
&
nsstr
,
&
strw
);
TRACE
(
"%s
\n
"
,
debugstr_w
(
strw
));
...
...
@@ -357,6 +362,8 @@ static HRESULT get_doc_string(HTMLDocumentNode *This, char **str)
nsAString_Finish
(
&
nsstr
);
if
(
!*
str
)
return
E_OUTOFMEMORY
;
return
S_OK
;
}
...
...
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