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
477fd6ef
Commit
477fd6ef
authored
Dec 18, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 19, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: libxml2 is not used for writer.
parent
02414775
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
34 deletions
+21
-34
msxml_private.h
dlls/msxml3/msxml_private.h
+21
-21
mxwriter.c
dlls/msxml3/mxwriter.c
+0
-13
No files found.
dlls/msxml3/msxml_private.h
View file @
477fd6ef
...
...
@@ -375,6 +375,27 @@ static inline BSTR bstr_from_xmlChar(const xmlChar *str)
return
ret
;
}
static
inline
xmlChar
*
xmlchar_from_wcharn
(
const
WCHAR
*
str
,
int
nchars
)
{
xmlChar
*
xmlstr
;
DWORD
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
str
,
nchars
,
NULL
,
0
,
NULL
,
NULL
);
xmlstr
=
heap_alloc
(
len
+
1
);
if
(
xmlstr
)
{
WideCharToMultiByte
(
CP_UTF8
,
0
,
str
,
nchars
,
(
LPSTR
)
xmlstr
,
len
+
1
,
NULL
,
NULL
);
xmlstr
[
len
]
=
0
;
}
return
xmlstr
;
}
static
inline
xmlChar
*
xmlchar_from_wchar
(
const
WCHAR
*
str
)
{
return
xmlchar_from_wcharn
(
str
,
-
1
);
}
#endif
static
inline
HRESULT
return_bstr
(
const
WCHAR
*
value
,
BSTR
*
p
)
{
if
(
!
p
)
...
...
@@ -425,27 +446,6 @@ static inline HRESULT return_null_bstr(BSTR *p)
return
S_FALSE
;
}
static
inline
xmlChar
*
xmlchar_from_wcharn
(
const
WCHAR
*
str
,
int
nchars
)
{
xmlChar
*
xmlstr
;
DWORD
len
=
WideCharToMultiByte
(
CP_UTF8
,
0
,
str
,
nchars
,
NULL
,
0
,
NULL
,
NULL
);
xmlstr
=
heap_alloc
(
len
+
1
);
if
(
xmlstr
)
{
WideCharToMultiByte
(
CP_UTF8
,
0
,
str
,
nchars
,
(
LPSTR
)
xmlstr
,
len
+
1
,
NULL
,
NULL
);
xmlstr
[
len
]
=
0
;
}
return
xmlstr
;
}
static
inline
xmlChar
*
xmlchar_from_wchar
(
const
WCHAR
*
str
)
{
return
xmlchar_from_wcharn
(
str
,
-
1
);
}
#endif
extern
IXMLDOMParseError
*
create_parseError
(
LONG
code
,
BSTR
url
,
BSTR
reason
,
BSTR
srcText
,
LONG
line
,
LONG
linepos
,
LONG
filepos
)
DECLSPEC_HIDDEN
;
extern
HRESULT
DOMDocument_create
(
MSXML_VERSION
,
IUnknown
*
,
void
**
)
DECLSPEC_HIDDEN
;
...
...
dlls/msxml3/mxwriter.c
View file @
477fd6ef
...
...
@@ -39,8 +39,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
msxml
);
#ifdef HAVE_LIBXML2
static
const
WCHAR
utf16W
[]
=
{
'U'
,
'T'
,
'F'
,
'-'
,
'1'
,
'6'
,
0
};
static
const
WCHAR
emptyW
[]
=
{
0
};
...
...
@@ -1144,14 +1142,3 @@ HRESULT MXWriter_create(MSXML_VERSION version, IUnknown *outer, void **ppObj)
return
S_OK
;
}
#else
HRESULT
MXWriter_create
(
MSXML_VERSION
version
,
IUnknown
*
outer
,
void
**
obj
)
{
MESSAGE
(
"This program tried to use a MXXMLWriter object, but
\n
"
"libxml2 support was not present at compile time.
\n
"
);
return
E_NOTIMPL
;
}
#endif
/* HAVE_LIBXML2 */
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