Commit b1480630 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msxml3: Replace macro with another enum entry.

parent ca48dac8
......@@ -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)
......
......@@ -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;
......
......@@ -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,
......
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