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
b2152692
Commit
b2152692
authored
Sep 29, 2006
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 02, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Fixed compilation in the nameless union case.
parent
68e84a7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
usrmarshal.c
dlls/oleaut32/tests/usrmarshal.c
+9
-3
No files found.
dlls/oleaut32/tests/usrmarshal.c
View file @
b2152692
...
...
@@ -27,6 +27,12 @@
#include "wine/test.h"
#if (__STDC__ && !defined(_FORCENAMELESSUNION)) || defined(NONAMELESSUNION)
# define V_U2(A) ((A)->n1.n2)
#else
# define V_U2(A) (*(A))
#endif
/* doesn't work on Windows due to needing more of the
* MIDL_STUB_MESSAGE structure to be filled out */
#define LPSAFEARRAY_UNMARSHAL_WORKS 0
...
...
@@ -376,11 +382,11 @@ static void check_variant_header(DWORD *wirev, VARIANT *v, unsigned long size)
wp
=
(
WORD
*
)
wirev
;
ok
(
*
wp
==
V_VT
(
v
),
"vt %04x expected %04x
\n
"
,
*
wp
,
V_VT
(
v
));
wp
++
;
ok
(
*
wp
==
v
->
n1
.
n2
.
wReserved1
,
"res1 %04x expected %04x
\n
"
,
*
wp
,
v
->
n1
.
n2
.
wReserved1
);
ok
(
*
wp
==
V_U2
(
v
).
wReserved1
,
"res1 %04x expected %04x
\n
"
,
*
wp
,
V_U2
(
v
)
.
wReserved1
);
wp
++
;
ok
(
*
wp
==
v
->
n1
.
n2
.
wReserved2
,
"res2 %04x expected %04x
\n
"
,
*
wp
,
v
->
n1
.
n2
.
wReserved2
);
ok
(
*
wp
==
V_U2
(
v
).
wReserved2
,
"res2 %04x expected %04x
\n
"
,
*
wp
,
V_U2
(
v
)
.
wReserved2
);
wp
++
;
ok
(
*
wp
==
v
->
n1
.
n2
.
wReserved3
,
"res3 %04x expected %04x
\n
"
,
*
wp
,
v
->
n1
.
n2
.
wReserved3
);
ok
(
*
wp
==
V_U2
(
v
).
wReserved3
,
"res3 %04x expected %04x
\n
"
,
*
wp
,
V_U2
(
v
)
.
wReserved3
);
wp
++
;
wirev
=
(
DWORD
*
)
wp
;
switch_is
=
V_VT
(
v
);
...
...
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