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
11736f36
Commit
11736f36
authored
Jul 30, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 30, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement IMXAttributes_removeAttribute().
parent
2fe34bfb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
mxwriter.c
dlls/msxml3/mxwriter.c
+20
-2
No files found.
dlls/msxml3/mxwriter.c
View file @
11736f36
...
...
@@ -1891,8 +1891,26 @@ static HRESULT WINAPI MXAttributes_clear(IMXAttributes *iface)
static
HRESULT
WINAPI
MXAttributes_removeAttribute
(
IMXAttributes
*
iface
,
int
index
)
{
mxattributes
*
This
=
impl_from_IMXAttributes
(
iface
);
FIXME
(
"(%p)->(%d): stub
\n
"
,
This
,
index
);
return
E_NOTIMPL
;
mxattribute
*
src
,
*
dst
;
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
index
);
if
(
index
<
0
||
index
>=
This
->
length
)
return
E_INVALIDARG
;
/* no need to remove last attribute, just make it inaccessible */
if
(
index
+
1
==
This
->
length
)
{
This
->
length
--
;
return
S_OK
;
}
dst
=
&
This
->
attr
[
index
];
src
=
&
This
->
attr
[
index
+
1
];
memmove
(
dst
,
src
,
(
This
->
length
-
index
-
1
)
*
sizeof
(
*
dst
));
This
->
length
--
;
return
S_OK
;
}
static
HRESULT
WINAPI
MXAttributes_setAttribute
(
IMXAttributes
*
iface
,
int
index
,
...
...
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