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
6f95c699
Commit
6f95c699
authored
Apr 16, 2012
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 17, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Added IMXAttributes::clear().
parent
f9c3a51f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
mxwriter.c
dlls/msxml3/mxwriter.c
+17
-2
saxreader.c
dlls/msxml3/tests/saxreader.c
+4
-4
No files found.
dlls/msxml3/mxwriter.c
View file @
6f95c699
...
...
@@ -1665,8 +1665,23 @@ static HRESULT WINAPI MXAttributes_addAttributeFromIndex(IMXAttributes *iface,
static
HRESULT
WINAPI
MXAttributes_clear
(
IMXAttributes
*
iface
)
{
mxattributes
*
This
=
impl_from_IMXAttributes
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
E_NOTIMPL
;
int
i
;
TRACE
(
"(%p)
\n
"
,
This
);
for
(
i
=
0
;
i
<
This
->
length
;
i
++
)
{
SysFreeString
(
This
->
attr
[
i
].
qname
);
SysFreeString
(
This
->
attr
[
i
].
local
);
SysFreeString
(
This
->
attr
[
i
].
uri
);
SysFreeString
(
This
->
attr
[
i
].
type
);
SysFreeString
(
This
->
attr
[
i
].
value
);
memset
(
&
This
->
attr
[
i
],
0
,
sizeof
(
mxattribute
));
}
This
->
length
=
0
;
return
S_OK
;
}
static
HRESULT
WINAPI
MXAttributes_removeAttribute
(
IMXAttributes
*
iface
,
int
index
)
...
...
dlls/msxml3/tests/saxreader.c
View file @
6f95c699
...
...
@@ -4068,6 +4068,9 @@ static void test_mxattr_clear(void)
hr
=
ISAXAttributes_getQName
(
saxattr
,
0
,
&
ptr
,
&
len
);
EXPECT_HR
(
hr
,
E_INVALIDARG
);
hr
=
IMXAttributes_clear
(
mxattr
);
EXPECT_HR
(
hr
,
S_OK
);
hr
=
IMXAttributes_addAttribute
(
mxattr
,
_bstr_
(
"uri"
),
_bstr_
(
"local"
),
_bstr_
(
"qname"
),
_bstr_
(
"type"
),
_bstr_
(
"value"
));
EXPECT_HR
(
hr
,
S_OK
);
...
...
@@ -4094,23 +4097,20 @@ static void test_mxattr_clear(void)
ok
(
!
lstrcmpW
(
ptr
,
_bstr_
(
"qname"
)),
"got %s
\n
"
,
wine_dbgstr_w
(
ptr
));
hr
=
IMXAttributes_clear
(
mxattr
);
todo_wine
EXPECT_HR
(
hr
,
S_OK
);
len
=
-
1
;
hr
=
ISAXAttributes_getLength
(
saxattr
,
&
len
);
EXPECT_HR
(
hr
,
S_OK
);
todo_wine
ok
(
len
==
0
,
"got %d
\n
"
,
len
);
len
=
-
1
;
ptr
=
(
void
*
)
0xdeadbeef
;
hr
=
ISAXAttributes_getQName
(
saxattr
,
0
,
&
ptr
,
&
len
);
todo_wine
{
EXPECT_HR
(
hr
,
E_INVALIDARG
);
ok
(
len
==
-
1
,
"got %d
\n
"
,
len
);
ok
(
ptr
==
(
void
*
)
0xdeadbeef
,
"got %p
\n
"
,
ptr
);
}
IMXAttributes_Release
(
mxattr
);
ISAXAttributes_Release
(
saxattr
);
free_bstrs
();
...
...
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