msxml3: Avoid BAD_CAST in schemasInit.

This commit is contained in:
Jacek Caban 2012-03-15 12:33:17 +01:00 committed by Alexandre Julliard
parent 59c9b1070c
commit f0f5c45b93
1 changed files with 2 additions and 2 deletions

View File

@ -718,7 +718,7 @@ static xmlParserInputPtr external_entity_loader(const char *URL, const char *ID,
void schemasInit(void) void schemasInit(void)
{ {
int len; int len;
char* buf; xmlChar* buf;
if (!(datatypes_rsrc = FindResourceA(MSXML_hInstance, "DATATYPES", "XML"))) if (!(datatypes_rsrc = FindResourceA(MSXML_hInstance, "DATATYPES", "XML")))
{ {
FIXME("failed to find resource for %s\n", DT_nsURI); FIXME("failed to find resource for %s\n", DT_nsURI);
@ -737,7 +737,7 @@ void schemasInit(void)
* need a null-terminated string */ * need a null-terminated string */
while (buf[len] != '>') while (buf[len] != '>')
buf[len--] = 0; buf[len--] = 0;
datatypes_src = BAD_CAST buf; datatypes_src = buf;
datatypes_len = len + 1; datatypes_len = len + 1;
if (xmlGetExternalEntityLoader() != external_entity_loader) if (xmlGetExternalEntityLoader() != external_entity_loader)