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
324267c4
Commit
324267c4
authored
Jul 18, 2005
by
Alex Villacís Lasso
Committed by
Alexandre Julliard
Jul 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for behavior of negative underflow formatting.
parent
7d3ba6f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
vartype.c
dlls/oleaut32/tests/vartype.c
+9
-0
No files found.
dlls/oleaut32/tests/vartype.c
View file @
324267c4
...
...
@@ -4586,6 +4586,7 @@ static void test_VarBoolChangeTypeEx(void)
static
void
test_VarBstrFromR4
(
void
)
{
static
const
WCHAR
szNative
[]
=
{
'6'
,
'5'
,
'4'
,
'3'
,
'2'
,
'2'
,
'.'
,
'3'
,
'\0'
};
static
const
WCHAR
szZero
[]
=
{
'0'
,
'\0'
};
LCID
lcid
;
HRESULT
hres
;
BSTR
bstr
=
NULL
;
...
...
@@ -4608,6 +4609,14 @@ static void test_VarBstrFromR4(void)
ok
(
memcmp
(
bstr
,
szNative
,
sizeof
(
szNative
))
==
0
,
"string different
\n
"
);
}
}
f
=
-
1e-400
;
/* deliberately cause underflow */
hres
=
pVarBstrFromR4
(
f
,
lcid
,
0
,
&
bstr
);
ok
(
hres
==
S_OK
,
"got hres 0x%08lx
\n
"
,
hres
);
if
(
bstr
)
{
todo_wine
ok
(
memcmp
(
bstr
,
szZero
,
sizeof
(
szZero
))
==
0
,
"negative zero (got %s)
\n
"
,
wtoascii
(
bstr
));
}
}
#define BSTR_DATE(dt,str) SysFreeString(bstr); bstr = NULL; \
...
...
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