Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
41f456f3
Commit
41f456f3
authored
Nov 16, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Add a test for VT_NULL input for VarFormatDateTime().
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
0a5932e1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
varformat.c
dlls/oleaut32/tests/varformat.c
+14
-0
No files found.
dlls/oleaut32/tests/varformat.c
View file @
41f456f3
...
...
@@ -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
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment