Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3fa57822
Commit
3fa57822
authored
Jun 05, 2008
by
Dan Kegel
Committed by
Alexandre Julliard
Jun 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: VariantInit() isn't enough, you have to give a value, too.
parent
d38dc023
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
12 deletions
+21
-12
vartest.c
dlls/oleaut32/tests/vartest.c
+21
-12
No files found.
dlls/oleaut32/tests/vartest.c
View file @
3fa57822
...
...
@@ -5318,18 +5318,27 @@ static void test_VarCat(void)
V_VT
(
&
left
)
=
leftvt
;
V_VT
(
&
right
)
=
rightvt
;
if
(
leftvt
==
VT_BSTR
)
V_BSTR
(
&
left
)
=
SysAllocString
(
sz_empty
);
if
(
rightvt
==
VT_BSTR
)
V_BSTR
(
&
right
)
=
SysAllocString
(
sz_empty
);
if
(
leftvt
==
VT_DATE
)
V_DATE
(
&
left
)
=
0
.
0
;
if
(
rightvt
==
VT_DATE
)
V_DATE
(
&
right
)
=
0
.
0
;
if
(
leftvt
==
VT_DECIMAL
)
VarDecFromR8
(
0
.
0
,
&
V_DECIMAL
(
&
left
));
if
(
rightvt
==
VT_DECIMAL
)
VarDecFromR8
(
0
.
0
,
&
V_DECIMAL
(
&
right
));
switch
(
leftvt
)
{
case
VT_BSTR
:
V_BSTR
(
&
left
)
=
SysAllocString
(
sz_empty
);
break
;
case
VT_DATE
:
V_DATE
(
&
left
)
=
0
.
0
;
break
;
case
VT_DECIMAL
:
VarDecFromR8
(
0
.
0
,
&
V_DECIMAL
(
&
left
));
break
;
default:
V_I8
(
&
left
)
=
0
;
}
switch
(
rightvt
)
{
case
VT_BSTR
:
V_BSTR
(
&
right
)
=
SysAllocString
(
sz_empty
);
break
;
case
VT_DATE
:
V_DATE
(
&
right
)
=
0
.
0
;
break
;
case
VT_DECIMAL
:
VarDecFromR8
(
0
.
0
,
&
V_DECIMAL
(
&
right
));
break
;
default:
V_I8
(
&
right
)
=
0
;
}
hres
=
VarCat
(
&
left
,
&
right
,
&
result
);
...
...
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