Commit c64d409a authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

oleaut32/tests: Get rid of HAVE_OLEAUT32_RECORD in vartype.

parent 7bb58e88
......@@ -53,8 +53,6 @@ static HMODULE hOleaut32;
/* Is a given function exported from oleaut32? */
#define HAVE_FUNC(func) ((void*)GetProcAddress(hOleaut32, #func) != NULL)
/* Have IRecordInfo data type? */
#define HAVE_OLEAUT32_RECORD HAVE_FUNC(SafeArraySetRecordInfo)
/* Have DECIMAL data type with new error checking? */
#define HAVE_OLEAUT32_DECIMAL HAVE_FUNC(VarDecAdd)
/* Have CY data type? */
......@@ -241,10 +239,7 @@ static HMODULE hOleaut32;
MISMATCH(VT_ERROR); \
MISMATCH(VT_UNKNOWN); \
MISMATCH(VT_VARIANT); \
if (HAVE_OLEAUT32_RECORD) \
{ \
MISMATCH(VT_RECORD); \
} \
BADVAR(VT_VOID); \
BADVAR(VT_HRESULT); \
BADVAR(VT_SAFEARRAY); \
......@@ -5727,7 +5722,6 @@ static void test_IUnknownChangeTypeEx(void)
}
else if (vt == VT_RECORD)
{
if (HAVE_OLEAUT32_RECORD)
hExpected = DISP_E_TYPEMISMATCH;
}
else if (vt >= VT_I2 && vt <= VT_UINT && vt != (VARTYPE)15)
......@@ -5878,7 +5872,6 @@ static void test_ErrorChangeTypeEx(void)
}
else if (vt == VT_RECORD)
{
if (HAVE_OLEAUT32_RECORD)
hExpected = DISP_E_TYPEMISMATCH;
}
else if (vt <= VT_UINT && vt != (VARTYPE)15)
......@@ -5915,7 +5908,6 @@ static void test_EmptyChangeTypeEx(void)
}
else if (vt == VT_RECORD)
{
if (HAVE_OLEAUT32_RECORD)
hExpected = DISP_E_TYPEMISMATCH;
}
else if (vt == VT_VARIANT || vt == VT_DISPATCH ||
......@@ -5961,7 +5953,6 @@ static void test_NullChangeTypeEx(void)
}
else if (vt == VT_RECORD)
{
if (HAVE_OLEAUT32_RECORD)
hExpected = DISP_E_TYPEMISMATCH;
}
else if (vt == VT_NULL)
......
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