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
55a6db89
Commit
55a6db89
authored
Sep 21, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Sep 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msxml3: Fix printing NULL strings.
parent
7a356abe
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
10 deletions
+16
-10
element.c
dlls/msxml3/element.c
+4
-4
httprequest.c
dlls/msxml3/httprequest.c
+2
-2
main.c
dlls/msxml3/main.c
+2
-2
msxml_private.h
dlls/msxml3/msxml_private.h
+1
-0
schema.c
dlls/msxml3/schema.c
+7
-2
No files found.
dlls/msxml3/element.c
View file @
55a6db89
...
...
@@ -663,7 +663,7 @@ static inline HRESULT variant_from_dt(XDR_DT dt, xmlChar* str, VARIANT* v)
case
DT_IDREF
:
case
DT_IDREFS
:
case
DT_NOTATION
:
FIXME
(
"need to handle dt:%s
\n
"
,
d
t_to_str
(
dt
));
FIXME
(
"need to handle dt:%s
\n
"
,
d
ebugstr_dt
(
dt
));
V_VT
(
v
)
=
VT_BSTR
;
V_BSTR
(
v
)
=
bstr_from_xmlChar
(
str
);
if
(
!
V_BSTR
(
v
))
...
...
@@ -729,7 +729,7 @@ static XDR_DT element_get_dt(xmlNodePtr node)
}
}
TRACE
(
"=> dt:%s
\n
"
,
d
t_to_str
(
dt
));
TRACE
(
"=> dt:%s
\n
"
,
d
ebugstr_dt
(
dt
));
return
dt
;
}
...
...
@@ -786,7 +786,7 @@ static HRESULT WINAPI domelem_put_nodeTypedValue(
}
else
{
FIXME
(
"not implemented for dt:%s
\n
"
,
d
t_to_str
(
dt
));
FIXME
(
"not implemented for dt:%s
\n
"
,
d
ebugstr_dt
(
dt
));
return
E_NOTIMPL
;
}
...
...
@@ -934,7 +934,7 @@ static HRESULT WINAPI domelem_put_dataType(
}
break
;
default:
FIXME
(
"need to handle dt:%s
\n
"
,
d
t_to_str
(
dt
));
FIXME
(
"need to handle dt:%s
\n
"
,
d
ebugstr_dt
(
dt
));
break
;
}
}
...
...
dlls/msxml3/httprequest.c
View file @
55a6db89
...
...
@@ -888,12 +888,12 @@ static HRESULT WINAPI httprequest_get_responseText(IXMLHTTPRequest *iface, BSTR
if
(
size
>=
4
)
{
encoding
=
xmlDetectCharEncoding
(
ptr
,
4
);
TRACE
(
"detected encoding: %s
\n
"
,
xmlGetCharEncodingName
(
encoding
));
TRACE
(
"detected encoding: %s
\n
"
,
debugstr_a
(
xmlGetCharEncodingName
(
encoding
)
));
if
(
encoding
!=
XML_CHAR_ENCODING_UTF8
&&
encoding
!=
XML_CHAR_ENCODING_UTF16LE
&&
encoding
!=
XML_CHAR_ENCODING_NONE
)
{
FIXME
(
"unsupported encoding: %s
\n
"
,
xmlGetCharEncodingName
(
encoding
));
FIXME
(
"unsupported encoding: %s
\n
"
,
debugstr_a
(
xmlGetCharEncodingName
(
encoding
)
));
GlobalUnlock
(
hglobal
);
return
E_FAIL
;
}
...
...
dlls/msxml3/main.c
View file @
55a6db89
...
...
@@ -105,7 +105,7 @@ void wineXmlCallbackError(char const* caller, xmlErrorPtr err)
case
XML_ERR_WARNING
:
dbcl
=
__WINE_DBCL_WARN
;
break
;
default:
dbcl
=
__WINE_DBCL_ERR
;
break
;
}
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
"%s"
,
err
->
message
);
wine_dbg_log
(
dbcl
,
&
__wine_dbch_msxml
,
caller
,
"%s"
,
debugstr_a
(
err
->
message
)
);
}
/* Support for loading xml files from a Wine Windows drive */
...
...
@@ -288,7 +288,7 @@ const char *debugstr_variant(const VARIANT *v)
return
wine_dbg_sprintf
(
"{VT_UINT: %u}"
,
V_UINT
(
v
));
case
VT_BSTR
|
VT_BYREF
:
return
wine_dbg_sprintf
(
"{VT_BSTR|VT_BYREF: ptr %p, data %s}"
,
V_BSTRREF
(
v
),
V_BSTRREF
(
v
)
?
debugstr_w
(
*
V_BSTRREF
(
v
))
:
NULL
);
V_BSTRREF
(
v
),
debugstr_w
(
V_BSTRREF
(
v
)
?
*
V_BSTRREF
(
v
)
:
NULL
)
);
default:
return
wine_dbg_sprintf
(
"{vt %d}"
,
V_VT
(
v
));
}
...
...
dlls/msxml3/msxml_private.h
View file @
55a6db89
...
...
@@ -333,6 +333,7 @@ extern XDR_DT SchemaCache_get_node_dt(IXMLDOMSchemaCollection2* iface, xmlNodeP
extern
XDR_DT
str_to_dt
(
xmlChar
const
*
str
,
int
len
/* calculated if -1 */
)
DECLSPEC_HIDDEN
;
extern
XDR_DT
bstr_to_dt
(
OLECHAR
const
*
bstr
,
int
len
/* calculated if -1 */
)
DECLSPEC_HIDDEN
;
extern
xmlChar
const
*
dt_to_str
(
XDR_DT
dt
)
DECLSPEC_HIDDEN
;
extern
const
char
*
debugstr_dt
(
XDR_DT
dt
)
DECLSPEC_HIDDEN
;
extern
OLECHAR
const
*
dt_to_bstr
(
XDR_DT
dt
)
DECLSPEC_HIDDEN
;
extern
HRESULT
dt_validate
(
XDR_DT
dt
,
xmlChar
const
*
content
)
DECLSPEC_HIDDEN
;
...
...
dlls/msxml3/schema.c
View file @
55a6db89
...
...
@@ -573,6 +573,11 @@ OLECHAR const* dt_to_bstr(XDR_DT dt)
return
DT_wstring_table
[
dt
];
}
const
char
*
debugstr_dt
(
XDR_DT
dt
)
{
return
debugstr_a
(
dt
!=
DT_INVALID
?
(
const
char
*
)
DT_string_table
[
dt
]
:
NULL
);
}
HRESULT
dt_validate
(
XDR_DT
dt
,
xmlChar
const
*
content
)
{
xmlDocPtr
tmp_doc
;
...
...
@@ -580,7 +585,7 @@ HRESULT dt_validate(XDR_DT dt, xmlChar const* content)
xmlNsPtr
ns
;
HRESULT
hr
;
TRACE
(
"(dt:%s, %s)
\n
"
,
d
t_to_str
(
dt
),
wine_dbgstr_a
((
char
const
*
)
content
));
TRACE
(
"(dt:%s, %s)
\n
"
,
d
ebugstr_dt
(
dt
),
wine_dbgstr_a
((
char
const
*
)
content
));
if
(
!
datatypes_schema
)
{
...
...
@@ -650,7 +655,7 @@ HRESULT dt_validate(XDR_DT dt, xmlChar const* content)
}
return
hr
;
default:
FIXME
(
"need to handle dt:%s
\n
"
,
d
t_to_str
(
dt
));
FIXME
(
"need to handle dt:%s
\n
"
,
d
ebugstr_dt
(
dt
));
return
S_OK
;
}
}
...
...
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