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
ba23adba
Commit
ba23adba
authored
Jan 18, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 18, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut: Add missing SysFreeString to the Var{Mul,Add,Cmp} tests.
parent
0d00d9af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
vartest.c
dlls/oleaut32/tests/vartest.c
+17
-0
No files found.
dlls/oleaut32/tests/vartest.c
View file @
ba23adba
...
...
@@ -4731,6 +4731,9 @@ static void test_VarMul(void)
ok
(
hres
==
S_OK
&&
V_VT
(
&
result
)
==
VT_DECIMAL
,
"VarMul: expected coerced type VT_DECIMAL, got %s!
\n
"
,
vtstr
(
V_VT
(
&
result
)));
hres
=
VarR8FromDec
(
&
V_DECIMAL
(
&
result
),
&
r
);
ok
(
hres
==
S_OK
&&
EQ_DOUBLE
(
r
,
46
.
2
),
"VarMul: DECIMAL value %f, expected %f
\n
"
,
r
,
(
double
)
46
.
2
);
SysFreeString
(
lbstr
);
SysFreeString
(
rbstr
);
}
static
HRESULT
(
WINAPI
*
pVarAdd
)(
LPVARIANT
,
LPVARIANT
,
LPVARIANT
);
...
...
@@ -4928,6 +4931,9 @@ static void test_VarAdd(void)
ok
(
hres
==
S_OK
&&
V_VT
(
&
result
)
==
VT_DECIMAL
,
"VarAdd: expected coerced type VT_DECIMAL, got %s!
\n
"
,
vtstr
(
V_VT
(
&
result
)));
hres
=
VarR8FromDec
(
&
V_DECIMAL
(
&
result
),
&
r
);
ok
(
hres
==
S_OK
&&
EQ_DOUBLE
(
r
,
-
15
.
2
),
"VarAdd: DECIMAL value %f, expected %f
\n
"
,
r
,
(
double
)
-
15
.
2
);
SysFreeString
(
lbstr
);
SysFreeString
(
rbstr
);
}
static
HRESULT
(
WINAPI
*
pVarCmp
)(
LPVARIANT
,
LPVARIANT
,
LCID
,
ULONG
);
...
...
@@ -5180,6 +5186,17 @@ static void test_VarCmp(void)
VARCMP
(
R4
,
1
,
BSTR
,
bstr1few
,
VARCMP_LT
);
/* bstr1few == 1+1e-8 */
SETDEC
(
dec
,
8
,
0
,
0
,
0x5F5E101
);
/* 1+1e-8 */
VARCMP
(
R4
,
1
,
DECIMAL
,
dec
,
VARCMP_LT
);
SysFreeString
(
bstrhuh
);
SysFreeString
(
bstrempty
);
SysFreeString
(
bstr0
);
SysFreeString
(
bstr1
);
SysFreeString
(
bstr7
);
SysFreeString
(
bstr42
);
SysFreeString
(
bstr1neg
);
SysFreeString
(
bstr666neg
);
SysFreeString
(
bstr2cents
);
SysFreeString
(
bstr1few
);
}
START_TEST
(
vartest
)
...
...
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