Commit f0f5c45b authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

msxml3: Avoid BAD_CAST in schemasInit.

parent 59c9b107
......@@ -718,7 +718,7 @@ static xmlParserInputPtr external_entity_loader(const char *URL, const char *ID,
void schemasInit(void)
{
int len;
char* buf;
xmlChar* buf;
if (!(datatypes_rsrc = FindResourceA(MSXML_hInstance, "DATATYPES", "XML")))
{
FIXME("failed to find resource for %s\n", DT_nsURI);
......@@ -737,7 +737,7 @@ void schemasInit(void)
* need a null-terminated string */
while (buf[len] != '>')
buf[len--] = 0;
datatypes_src = BAD_CAST buf;
datatypes_src = buf;
datatypes_len = len + 1;
if (xmlGetExternalEntityLoader() != external_entity_loader)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment