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
6c1275a5
Commit
6c1275a5
authored
Jan 13, 2010
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 14, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3/xmldoc: IPersistStreamInit::InitNew() seems to do nothing for IXMLDocument.
parent
a18ee211
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
4 deletions
+26
-4
xmldoc.c
dlls/msxml3/tests/xmldoc.c
+23
-2
xmldoc.c
dlls/msxml3/xmldoc.c
+3
-2
No files found.
dlls/msxml3/tests/xmldoc.c
View file @
6c1275a5
...
...
@@ -355,6 +355,7 @@ static void test_createElement(void)
static
void
test_persiststreaminit
(
void
)
{
IXMLDocument
*
doc
=
NULL
;
IXMLElement
*
element
=
NULL
;
IPersistStreamInit
*
psi
=
NULL
;
IStream
*
stream
=
NULL
;
STATSTG
stat
;
...
...
@@ -362,6 +363,8 @@ static void test_persiststreaminit(void)
ULARGE_INTEGER
size
;
CHAR
path
[
MAX_PATH
];
CLSID
id
;
BSTR
str
;
static
const
WCHAR
testW
[]
=
{
't'
,
'e'
,
's'
,
't'
,
0
};
hr
=
CoCreateInstance
(
&
CLSID_XMLDocument
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IXMLDocument
,
(
LPVOID
*
)
&
doc
);
...
...
@@ -382,7 +385,10 @@ static void test_persiststreaminit(void)
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
hr
=
IPersistStreamInit_GetClassID
(
psi
,
NULL
);
ok
(
hr
==
E_POINTER
,
"Expected E_INVALIDARG, got %08x
\n
"
,
hr
);
ok
(
hr
==
E_POINTER
,
"Expected E_POINTER, got %08x
\n
"
,
hr
);
hr
=
IPersistStreamInit_IsDirty
(
psi
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Expected S_FALSE, got %08x
\n
"
,
hr
);
create_xml_file
(
"bank.xml"
);
GetFullPathNameA
(
"bank.xml"
,
MAX_PATH
,
path
,
NULL
);
...
...
@@ -400,6 +406,9 @@ static void test_persiststreaminit(void)
if
(
hr
==
XML_E_INVALIDATROOTLEVEL
)
goto
cleanup
;
hr
=
IPersistStreamInit_IsDirty
(
psi
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Expected S_FALSE, got %08x
\n
"
,
hr
);
/* try to save document */
stream
=
NULL
;
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
);
...
...
@@ -413,9 +422,21 @@ static void test_persiststreaminit(void)
todo_wine
ok
(
stat
.
cbSize
.
QuadPart
>
0
,
"Expected >0
\n
"
);
IStream_Release
(
stream
);
str
=
SysAllocString
(
testW
);
hr
=
IXMLDocument_get_root
(
doc
,
&
element
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
hr
=
IXMLElement_put_text
(
element
,
str
);
SysFreeString
(
str
);
hr
=
IPersistStreamInit_IsDirty
(
psi
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Expected S_FALSE, got %08x
\n
"
,
hr
);
/* reset internal stream */
hr
=
IPersistStreamInit_InitNew
(
psi
);
todo_wine
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Expected S_OK, got %08x
\n
"
,
hr
);
hr
=
IPersistStreamInit_IsDirty
(
psi
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Expected S_FALSE, got %08x
\n
"
,
hr
);
stream
=
NULL
;
hr
=
CreateStreamOnHGlobal
(
NULL
,
TRUE
,
&
stream
);
...
...
dlls/msxml3/xmldoc.c
View file @
6c1275a5
...
...
@@ -670,8 +670,9 @@ static HRESULT WINAPI xmldoc_IPersistStreamInit_GetSizeMax(
static
HRESULT
WINAPI
xmldoc_IPersistStreamInit_InitNew
(
IPersistStreamInit
*
iface
)
{
FIXME
(
"(%p): stub!
\n
"
,
iface
);
return
E_NOTIMPL
;
xmldoc
*
This
=
impl_from_IPersistStreamInit
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
return
S_OK
;
}
static
const
IPersistStreamInitVtbl
xmldoc_IPersistStreamInit_VTable
=
...
...
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