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
5a39fab4
Commit
5a39fab4
authored
Aug 16, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Do not depend on libxml2 for msxwriter object.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
99d2bda5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
36 deletions
+35
-36
msxml_dispex.h
dlls/msxml3/msxml_dispex.h
+31
-0
msxml_private.h
dlls/msxml3/msxml_private.h
+0
-28
mxwriter.c
dlls/msxml3/mxwriter.c
+4
-8
No files found.
dlls/msxml3/msxml_dispex.h
View file @
5a39fab4
...
...
@@ -113,4 +113,35 @@ void release_dispex(DispatchEx*) DECLSPEC_HIDDEN;
BOOL
dispex_query_interface
(
DispatchEx
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
const
IID
*
get_riid_from_tid
(
enum
tid_t
tid
)
DECLSPEC_HIDDEN
;
static
inline
HRESULT
return_bstr
(
const
WCHAR
*
value
,
BSTR
*
p
)
{
if
(
!
p
)
return
E_INVALIDARG
;
if
(
value
)
{
*
p
=
SysAllocString
(
value
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
}
else
*
p
=
NULL
;
return
S_OK
;
}
static
inline
HRESULT
return_bstrn
(
const
WCHAR
*
value
,
int
len
,
BSTR
*
p
)
{
if
(
value
)
{
*
p
=
SysAllocStringLen
(
value
,
len
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
}
else
*
p
=
NULL
;
return
S_OK
;
}
#endif
/* __MSXML_DISPEX__ */
dlls/msxml3/msxml_private.h
View file @
5a39fab4
...
...
@@ -340,34 +340,6 @@ static inline xmlChar *heap_strdupxmlChar(const xmlChar *str)
#endif
static
inline
HRESULT
return_bstr
(
const
WCHAR
*
value
,
BSTR
*
p
)
{
if
(
!
p
)
return
E_INVALIDARG
;
if
(
value
)
{
*
p
=
SysAllocString
(
value
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
}
else
{
*
p
=
NULL
;
}
return
S_OK
;
}
static
inline
HRESULT
return_bstrn
(
const
WCHAR
*
value
,
int
len
,
BSTR
*
p
)
{
if
(
value
)
{
*
p
=
SysAllocStringLen
(
value
,
len
);
if
(
!*
p
)
return
E_OUTOFMEMORY
;
}
else
*
p
=
NULL
;
return
S_OK
;
}
static
inline
HRESULT
return_null_node
(
IXMLDOMNode
**
p
)
{
if
(
!
p
)
...
...
dlls/msxml3/mxwriter.c
View file @
5a39fab4
...
...
@@ -20,12 +20,8 @@
*/
#define COBJMACROS
#include "config.h"
#include <stdarg.h>
#ifdef HAVE_LIBXML2
# include <libxml/parser.h>
#endif
#include "windef.h"
#include "winbase.h"
...
...
@@ -34,9 +30,9 @@
#include "msxml6.h"
#include "wine/debug.h"
#include "wine/
list
.h"
#include "wine/
unicode
.h"
#include "msxml_
private
.h"
#include "msxml_
dispex
.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
msxml
);
...
...
@@ -258,7 +254,7 @@ static xml_encoding parse_encoding_name(const WCHAR *encoding)
{
n
=
(
min
+
max
)
/
2
;
c
=
strcmpiW
(
xml_encoding_map
[
n
].
encoding
,
encoding
);
c
=
l
strcmpiW
(
xml_encoding_map
[
n
].
encoding
,
encoding
);
if
(
!
c
)
return
xml_encoding_map
[
n
].
enc
;
...
...
@@ -347,7 +343,7 @@ static HRESULT write_output_buffer(mxwriter *writer, const WCHAR *data, int len)
if
(
!
len
||
!*
data
)
return
S_OK
;
src_len
=
len
==
-
1
?
strlenW
(
data
)
:
len
;
src_len
=
len
==
-
1
?
l
strlenW
(
data
)
:
len
;
if
(
writer
->
dest
)
{
buff
=
&
buffer
->
encoded
;
...
...
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