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
035f1dd0
Commit
035f1dd0
authored
Jun 08, 2008
by
Dan Kegel
Committed by
Alexandre Julliard
Jun 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Initialize reserved fields to unique values.
parent
3b0924cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
usrmarshal.c
dlls/oleaut32/tests/usrmarshal.c
+15
-0
No files found.
dlls/oleaut32/tests/usrmarshal.c
View file @
035f1dd0
...
...
@@ -528,6 +528,13 @@ static void test_marshal_VARIANT(void)
V_VT
(
&
v
)
=
VT_I1
;
V_I1
(
&
v
)
=
0x12
;
/* check_variant_header tests wReserved[123], so initialize to unique values.
* (Could probably also do this by setting the variant to a known DECIMAL.)
*/
V_U2
(
&
v
).
wReserved1
=
0x1234
;
V_U2
(
&
v
).
wReserved2
=
0x5678
;
V_U2
(
&
v
).
wReserved3
=
0x9abc
;
/* Variants have an alignment of 8 */
rpcMsg
.
BufferLength
=
stubMsg
.
BufferLength
=
VARIANT_UserSize
(
&
umcb
.
Flags
,
1
,
&
v
);
ok
(
stubMsg
.
BufferLength
==
29
,
"size %d
\n
"
,
stubMsg
.
BufferLength
);
...
...
@@ -849,6 +856,7 @@ static void test_marshal_VARIANT(void)
/*** DECIMAL ***/
VarDecFromI4
(
0x12345678
,
&
dec
);
dec
.
wReserved
=
0xfedc
;
/* Also initialize reserved field, as we check it later */
VariantInit
(
&
v
);
V_DECIMAL
(
&
v
)
=
dec
;
V_VT
(
&
v
)
=
VT_DECIMAL
;
...
...
@@ -906,6 +914,13 @@ static void test_marshal_VARIANT(void)
if
(
VARIANT_UNMARSHAL_WORKS
)
{
VariantInit
(
&
v2
);
/* check_variant_header tests wReserved[123], so initialize to unique values.
* (Could probably also do this by setting the variant to a known DECIMAL.)
*/
V_U2
(
&
v2
).
wReserved1
=
0x0123
;
V_U2
(
&
v2
).
wReserved2
=
0x4567
;
V_U2
(
&
v2
).
wReserved3
=
0x89ab
;
stubMsg
.
Buffer
=
buffer
;
next
=
VARIANT_UserUnmarshal
(
&
umcb
.
Flags
,
buffer
,
&
v2
);
ok
(
next
==
buffer
+
stubMsg
.
BufferLength
,
"got %p expect %p
\n
"
,
next
,
buffer
+
stubMsg
.
BufferLength
);
...
...
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