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
c5398095
Commit
c5398095
authored
Mar 11, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleau32/tests: Convert I8Copy to existing integer test scheme.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b2135d51
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
21 deletions
+1
-21
vartype.c
dlls/oleaut32/tests/vartype.c
+1
-21
No files found.
dlls/oleaut32/tests/vartype.c
View file @
c5398095
...
...
@@ -2057,33 +2057,13 @@ static void test_VarI8FromStr(void)
static
void
test_VarI8Copy
(
void
)
{
HRESULT
hres
;
VARIANTARG
vSrc
,
vDst
;
LONGLONG
in
=
1
;
if
(
!
has_i8
)
{
win_skip
(
"I8 and UI8 data types are not available
\n
"
);
return
;
}
VariantInit
(
&
vSrc
);
VariantInit
(
&
vDst
);
V_VT
(
&
vSrc
)
=
VT_I8
;
V_I8
(
&
vSrc
)
=
in
;
hres
=
VariantCopy
(
&
vDst
,
&
vSrc
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
vDst
)
==
VT_I8
&&
V_I8
(
&
vDst
)
==
in
,
"copy hres 0x%X, type %d, value (%x%08x) %x%08x
\n
"
,
hres
,
V_VT
(
&
vDst
),
(
UINT
)(
in
>>
32
),
(
UINT
)
in
,
(
UINT
)(
V_I8
(
&
vDst
)
>>
32
),
(
UINT
)
V_I8
(
&
vDst
)
);
V_VT
(
&
vSrc
)
=
VT_I8
|
VT_BYREF
;
V_I8REF
(
&
vSrc
)
=
&
in
;
hres
=
VariantCopy
(
&
vDst
,
&
vSrc
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
vDst
)
==
(
VT_I8
|
VT_BYREF
)
&&
V_I8REF
(
&
vDst
)
==
&
in
,
"ref hres 0x%X, type %d, ref (%p) %p
\n
"
,
hres
,
V_VT
(
&
vDst
),
&
in
,
V_I8REF
(
&
vDst
));
hres
=
VariantCopyInd
(
&
vDst
,
&
vSrc
);
ok
(
hres
==
S_OK
&&
V_VT
(
&
vDst
)
==
VT_I8
&&
V_I8
(
&
vDst
)
==
in
,
"copy hres 0x%X, type %d, value (%x%08x) %x%08x
\n
"
,
hres
,
V_VT
(
&
vDst
),
(
UINT
)(
in
>>
32
),
(
UINT
)
in
,
(
UINT
)(
V_I8
(
&
vDst
)
>>
32
),
(
UINT
)
V_I8
(
&
vDst
)
);
COPYTEST
(
1ll
,
VT_I8
,
V_I8
(
&
vSrc
),
V_I8
(
&
vDst
),
V_I8REF
(
&
vSrc
),
V_I8REF
(
&
vDst
),
"%I64d"
);
}
static
void
test_VarI8ChangeTypeEx
(
void
)
...
...
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