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
727970e2
Commit
727970e2
authored
Jan 24, 2006
by
Huw Davies
Committed by
Alexandre Julliard
Jan 24, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml: Implement save.
parent
a100e6b7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
2 deletions
+34
-2
domdoc.c
dlls/msxml3/domdoc.c
+34
-2
No files found.
dlls/msxml3/domdoc.c
View file @
727970e2
...
...
@@ -929,8 +929,40 @@ static HRESULT WINAPI domdoc_save(
IXMLDOMDocument
*
iface
,
VARIANT
destination
)
{
FIXME
(
"
\n
"
);
return
E_NOTIMPL
;
domdoc
*
This
=
impl_from_IXMLDOMDocument
(
iface
);
HANDLE
handle
;
xmlChar
*
mem
;
int
size
;
HRESULT
ret
=
S_OK
;
DWORD
written
;
TRACE
(
"(%p)->(var(vt %x, %s))
\n
"
,
This
,
V_VT
(
&
destination
),
V_VT
(
&
destination
)
==
VT_BSTR
?
debugstr_w
(
V_BSTR
(
&
destination
))
:
NULL
);
if
(
V_VT
(
&
destination
)
!=
VT_BSTR
)
{
FIXME
(
"Unhandled vt %x
\n
"
,
V_VT
(
&
destination
));
return
S_FALSE
;
}
handle
=
CreateFileW
(
V_BSTR
(
&
destination
),
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
WARN
(
"failed to create file
\n
"
);
return
S_FALSE
;
}
xmlDocDumpMemory
(
get_doc
(
This
),
&
mem
,
&
size
);
if
(
!
WriteFile
(
handle
,
mem
,
(
DWORD
)
size
,
&
written
,
NULL
)
||
written
!=
(
DWORD
)
size
)
{
WARN
(
"write error
\n
"
);
ret
=
S_FALSE
;
}
xmlFree
(
mem
);
CloseHandle
(
handle
);
return
ret
;
}
static
HRESULT
WINAPI
domdoc_get_validateOnParse
(
...
...
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