msxml3: IXMLDOMDocument2 async default value is VARIANT_TRUE.

This commit is contained in:
Alistair Leslie-Hughes 2009-01-21 21:58:31 +11:00 committed by Alexandre Julliard
parent ceed55a46a
commit 5bedc409d5
2 changed files with 5 additions and 1 deletions

View File

@ -2192,7 +2192,7 @@ HRESULT DOMDocument_create_from_xmldoc(xmlDocPtr xmldoc, IXMLDOMDocument2 **docu
doc->lpvtblIObjectSafety = &domdocObjectSafetyVtbl; doc->lpvtblIObjectSafety = &domdocObjectSafetyVtbl;
doc->lpvtblISupportErrorInfo = &support_error_vtbl; doc->lpvtblISupportErrorInfo = &support_error_vtbl;
doc->ref = 1; doc->ref = 1;
doc->async = 0; doc->async = VARIANT_TRUE;
doc->validating = 0; doc->validating = 0;
doc->resolving = 0; doc->resolving = 0;
doc->preserving = 0; doc->preserving = 0;

View File

@ -455,6 +455,10 @@ static void test_domdoc( void )
ok( b == VARIANT_FALSE, "failed to load XML string\n"); ok( b == VARIANT_FALSE, "failed to load XML string\n");
SysFreeString( str ); SysFreeString( str );
r = IXMLDOMDocument_get_async( doc, &b );
ok( r == S_OK, "get_async failed (%08x)\n", r);
ok( b == VARIANT_TRUE, "Wrong default value\n");
/* check that there's no document element */ /* check that there's no document element */
element = NULL; element = NULL;
r = IXMLDOMDocument_get_documentElement( doc, &element ); r = IXMLDOMDocument_get_documentElement( doc, &element );