mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 21:15:49 +00:00
oleaut32/tests: Add a test for VT_NULL input for VarFormatDateTime().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
This commit is contained in:
parent
0a5932e1a7
commit
41f456f3a4
|
@ -659,6 +659,19 @@ static void test_VarFormatCurrency(void)
|
|||
VariantClear(&in);
|
||||
}
|
||||
|
||||
static void test_VarFormatDateTime(void)
|
||||
{
|
||||
VARIANT in;
|
||||
HRESULT hr;
|
||||
BSTR str;
|
||||
|
||||
V_VT(&in) = VT_NULL;
|
||||
str = (void *)0xdeadbeef;
|
||||
hr = VarFormatDateTime(&in, 0, 0, &str);
|
||||
ok(hr == S_OK, "Unexpected hr %#lx.\n", hr);
|
||||
ok(!str, "Unexpected out string %p.\n", str);
|
||||
}
|
||||
|
||||
START_TEST(varformat)
|
||||
{
|
||||
test_VarFormatNumber();
|
||||
|
@ -667,4 +680,5 @@ START_TEST(varformat)
|
|||
test_VarFormatFromTokens();
|
||||
test_GetAltMonthNames();
|
||||
test_VarFormatCurrency();
|
||||
test_VarFormatDateTime();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue