Commit 9d9ce298 authored by Alexandre Julliard's avatar Alexandre Julliard

msxml3: Avoid some uninitialized variable warnings on old gcc.

parent e5917001
...@@ -384,46 +384,28 @@ extern HRESULT XMLDocument_create( IUnknown *pUnkOuter, void **pObj ); ...@@ -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;
......
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