msxml3: Replace macro with another enum entry.

This commit is contained in:
Nikolay Sivov 2012-01-23 07:28:21 +03:00 committed by Alexandre Julliard
parent ca48dac882
commit b148063031
3 changed files with 6 additions and 4 deletions

View File

@ -644,6 +644,8 @@ static inline HRESULT variant_from_dt(XDR_DT dt, xmlChar* str, VARIANT* v)
return E_OUTOFMEMORY;
handled = TRUE;
break;
default:
WARN("unknown type %d\n", dt);
}
if (!handled)

View File

@ -124,9 +124,9 @@ typedef enum _XDR_DT {
DT_UI4,
DT_UI8,
DT_URI,
DT_UUID
DT_UUID,
LAST_DT
} XDR_DT;
#define DT__N_TYPES (DT_UUID+1)
extern HRESULT get_typeinfo(tid_t tid, ITypeInfo **typeinfo) DECLSPEC_HIDDEN;
extern void release_typelib(void) DECLSPEC_HIDDEN;

View File

@ -391,7 +391,7 @@ static DWORD dt_hash_bstr(OLECHAR const* bstr, int len /* calculated if -1 */)
return hval;
}
static const xmlChar *const DT_string_table[DT__N_TYPES] =
static const xmlChar *const DT_string_table[LAST_DT] =
{
DT_bin_base64,
DT_bin_hex,
@ -431,7 +431,7 @@ static const xmlChar *const DT_string_table[DT__N_TYPES] =
DT_uuid
};
static const WCHAR *const DT_wstring_table[DT__N_TYPES] =
static const WCHAR *const DT_wstring_table[LAST_DT] =
{
wDT_bin_base64,
wDT_bin_hex,