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
74a7edd4
Commit
74a7edd4
authored
Aug 24, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Implement put_version() for MXWriter.
parent
4fd4a8ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
3 deletions
+38
-3
mxwriter.c
dlls/msxml3/mxwriter.c
+10
-3
saxreader.c
dlls/msxml3/tests/saxreader.c
+28
-0
No files found.
dlls/msxml3/mxwriter.c
View file @
74a7edd4
/*
* MXWriter implementation
*
* Copyright 2011 Nikolay Sivov for CodeWeavers
ы
* Copyright 2011 Nikolay Sivov for CodeWeavers
* Copyright 2011 Thomas Mullaly
*
* This library is free software; you can redistribute it and/or
...
...
@@ -525,8 +525,15 @@ static HRESULT WINAPI mxwriter_get_omitXMLDeclaration(IMXWriter *iface, VARIANT_
static
HRESULT
WINAPI
mxwriter_put_version
(
IMXWriter
*
iface
,
BSTR
version
)
{
mxwriter
*
This
=
impl_from_IMXWriter
(
iface
);
FIXME
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
version
));
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%s)
\n
"
,
This
,
debugstr_w
(
version
));
if
(
!
version
)
return
E_INVALIDARG
;
SysFreeString
(
This
->
version
);
This
->
version
=
SysAllocString
(
version
);
return
S_OK
;
}
static
HRESULT
WINAPI
mxwriter_get_version
(
IMXWriter
*
iface
,
BSTR
*
version
)
...
...
dlls/msxml3/tests/saxreader.c
View file @
74a7edd4
...
...
@@ -1191,6 +1191,34 @@ static void test_mxwriter_properties(void)
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"1.0"
)),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
/* store version string as is */
hr
=
IMXWriter_put_version
(
writer
,
NULL
);
ok
(
hr
==
E_INVALIDARG
,
"got %08x
\n
"
,
hr
);
hr
=
IMXWriter_put_version
(
writer
,
_bstr_
(
"1.0"
));
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IMXWriter_put_version
(
writer
,
_bstr_
(
""
));
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IMXWriter_get_version
(
writer
,
&
str
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
""
)),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
hr
=
IMXWriter_put_version
(
writer
,
_bstr_
(
"a.b"
));
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IMXWriter_get_version
(
writer
,
&
str
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"a.b"
)),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
hr
=
IMXWriter_put_version
(
writer
,
_bstr_
(
"2.0"
));
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
hr
=
IMXWriter_get_version
(
writer
,
&
str
);
ok
(
hr
==
S_OK
,
"got %08x
\n
"
,
hr
);
ok
(
!
lstrcmpW
(
str
,
_bstr_
(
"2.0"
)),
"got %s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IMXWriter_Release
(
writer
);
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