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
b3b81abb
Commit
b3b81abb
authored
Feb 09, 2010
by
Andrew Nguyen
Committed by
Alexandre Julliard
Feb 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mshtml: Accept NULL SAFEARRAY pointers in IHTMLDocument2::write(ln).
parent
a9fc71b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
+20
-0
htmldoc.c
dlls/mshtml/htmldoc.c
+3
-0
dom.c
dlls/mshtml/tests/dom.c
+17
-0
No files found.
dlls/mshtml/htmldoc.c
View file @
b3b81abb
...
...
@@ -776,6 +776,9 @@ static HRESULT document_write(HTMLDocument *This, SAFEARRAY *psarray, BOOL ln)
return
E_UNEXPECTED
;
}
if
(
!
psarray
)
return
S_OK
;
if
(
psarray
->
cDims
!=
1
)
{
FIXME
(
"cDims=%d
\n
"
,
psarray
->
cDims
);
return
E_INVALIDARG
;
...
...
dlls/mshtml/tests/dom.c
View file @
b3b81abb
...
...
@@ -5921,6 +5921,22 @@ static void test_create_elems(IHTMLDocument2 *doc)
IHTMLElement_Release
(
body
);
}
static
void
test_null_write
(
IHTMLDocument2
*
doc
)
{
HRESULT
hres
;
doc_write
(
doc
,
FALSE
,
NULL
);
doc_write
(
doc
,
TRUE
,
NULL
);
hres
=
IHTMLDocument2_write
(
doc
,
NULL
);
ok
(
hres
==
S_OK
,
"Expected IHTMLDocument2::write to return S_OK, got 0x%08x
\n
"
,
hres
);
hres
=
IHTMLDocument2_writeln
(
doc
,
NULL
);
ok
(
hres
==
S_OK
,
"Expected IHTMLDocument2::writeln to return S_OK, got 0x%08x
\n
"
,
hres
);
}
static
void
test_exec
(
IUnknown
*
unk
,
const
GUID
*
grpid
,
DWORD
cmdid
,
VARIANT
*
in
,
VARIANT
*
out
)
{
IOleCommandTarget
*
cmdtrg
;
...
...
@@ -6395,6 +6411,7 @@ START_TEST(dom)
run_domtest
(
elem_test2_str
,
test_elems2
);
run_domtest
(
doc_blank
,
test_create_elems
);
run_domtest
(
doc_blank
,
test_defaults
);
run_domtest
(
doc_blank
,
test_null_write
);
run_domtest
(
indent_test_str
,
test_indent
);
run_domtest
(
cond_comment_str
,
test_cond_comment
);
run_domtest
(
frameset_str
,
test_frameset
);
...
...
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