msxml3: Avoid some uninitialized variable warnings on old gcc.
This commit is contained in:
parent
e591700177
commit
9d9ce29823
|
@ -384,46 +384,28 @@ extern HRESULT XMLDocument_create( IUnknown *pUnkOuter, void **pObj );
|
||||||
extern HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, void **pObj );
|
extern HRESULT SAXXMLReader_create(IUnknown *pUnkOuter, void **pObj );
|
||||||
extern HRESULT XMLHTTPRequest_create(IUnknown *pUnkOuter, void **pObj);
|
extern HRESULT XMLHTTPRequest_create(IUnknown *pUnkOuter, void **pObj);
|
||||||
|
|
||||||
static inline const CLSID* DOMDocument_version(const MSXML_VERSION v)
|
static inline const CLSID* DOMDocument_version(MSXML_VERSION v)
|
||||||
{
|
{
|
||||||
CLSID const* clsid;
|
|
||||||
switch (v)
|
switch (v)
|
||||||
{
|
{
|
||||||
case MSXML_DEFAULT:
|
default:
|
||||||
clsid = &CLSID_DOMDocument;
|
case MSXML_DEFAULT: return &CLSID_DOMDocument;
|
||||||
break;
|
case MSXML3: return &CLSID_DOMDocument30;
|
||||||
case MSXML3:
|
case MSXML4: return &CLSID_DOMDocument40;
|
||||||
clsid = &CLSID_DOMDocument30;
|
case MSXML6: return &CLSID_DOMDocument60;
|
||||||
break;
|
|
||||||
case MSXML4:
|
|
||||||
clsid = &CLSID_DOMDocument40;
|
|
||||||
break;
|
|
||||||
case MSXML6:
|
|
||||||
clsid = &CLSID_DOMDocument60;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return clsid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline const CLSID* SchemaCache_version(const MSXML_VERSION v)
|
static inline const CLSID* SchemaCache_version(MSXML_VERSION v)
|
||||||
{
|
{
|
||||||
CLSID const* clsid;
|
|
||||||
switch (v)
|
switch (v)
|
||||||
{
|
{
|
||||||
case MSXML_DEFAULT:
|
default:
|
||||||
clsid = &CLSID_XMLSchemaCache;
|
case MSXML_DEFAULT: return &CLSID_XMLSchemaCache;
|
||||||
break;
|
case MSXML3: return &CLSID_XMLSchemaCache30;
|
||||||
case MSXML3:
|
case MSXML4: return &CLSID_XMLSchemaCache40;
|
||||||
clsid = &CLSID_XMLSchemaCache30;
|
case MSXML6: return &CLSID_XMLSchemaCache60;
|
||||||
break;
|
|
||||||
case MSXML4:
|
|
||||||
clsid = &CLSID_XMLSchemaCache40;
|
|
||||||
break;
|
|
||||||
case MSXML6:
|
|
||||||
clsid = &CLSID_XMLSchemaCache60;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
return clsid;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef struct bsc_t bsc_t;
|
typedef struct bsc_t bsc_t;
|
||||||
|
|
Loading…
Reference in New Issue