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
ee7902b2
Commit
ee7902b2
authored
Aug 31, 2009
by
Francois Gouget
Committed by
Alexandre Julliard
Aug 31, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Fix compilation on systems that don't support nameless unions.
Also omit the nameless union macros from the error messages for clarity.
parent
b8377459
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
63 deletions
+63
-63
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+63
-63
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
ee7902b2
...
...
@@ -2063,21 +2063,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %u instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U
(
umi
.
Level1
)
.
Buffer
==
buffer
+
15
,
"
U(umi.Level1)
.Buffer was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
Buffer
,
buffer
);
ok
(
U
(
umi
.
Level1
)
.
BufferSize
==
1
,
"
U(umi.Level1)
.BufferSize was %u instead of 1
\n
"
,
U
(
umi
.
Level1
)
.
BufferSize
);
ok
(
U
(
umi
.
Level1
)
.
pfnAllocate
==
my_alloc
,
"
U(umi.Level1)
.pfnAllocate was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnAllocate
,
my_alloc
);
ok
(
U
(
umi
.
Level1
)
.
pfnFree
==
my_free
,
"
U(umi.Level1)
.pfnFree was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnFree
,
my_free
);
ok
(
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
U(umi.Level1)
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
ok
(
U
1
(
umi
).
Level1
.
Buffer
==
buffer
+
15
,
"
umi.Level1
.Buffer was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
Buffer
,
buffer
);
ok
(
U
1
(
umi
).
Level1
.
BufferSize
==
1
,
"
umi.Level1
.BufferSize was %u instead of 1
\n
"
,
U
1
(
umi
).
Level1
.
BufferSize
);
ok
(
U
1
(
umi
).
Level1
.
pfnAllocate
==
my_alloc
,
"
umi.Level1
.pfnAllocate was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U
1
(
umi
).
Level1
.
pfnFree
==
my_free
,
"
umi.Level1
.pfnFree was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnFree
,
my_free
);
ok
(
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
umi.Level1
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* buffer size */
...
...
@@ -2097,21 +2097,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %u instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U
(
umi
.
Level1
)
.
Buffer
==
NULL
,
"
U(umi.Level1)
.Buffer was %p instead of NULL
\n
"
,
U
(
umi
.
Level1
)
.
Buffer
);
ok
(
U
(
umi
.
Level1
)
.
BufferSize
==
0
,
"
U(umi.Level1)
.BufferSize was %u instead of 0
\n
"
,
U
(
umi
.
Level1
)
.
BufferSize
);
ok
(
U
(
umi
.
Level1
)
.
pfnAllocate
==
my_alloc
,
"
U(umi.Level1)
.pfnAllocate was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnAllocate
,
my_alloc
);
ok
(
U
(
umi
.
Level1
)
.
pfnFree
==
my_free
,
"
U(umi.Level1)
.pfnFree was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnFree
,
my_free
);
ok
(
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
U(umi.Level1)
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
ok
(
U
1
(
umi
).
Level1
.
Buffer
==
NULL
,
"
umi.Level1
.Buffer was %p instead of NULL
\n
"
,
U
1
(
umi
).
Level1
.
Buffer
);
ok
(
U
1
(
umi
).
Level1
.
BufferSize
==
0
,
"
umi.Level1
.BufferSize was %u instead of 0
\n
"
,
U
1
(
umi
).
Level1
.
BufferSize
);
ok
(
U
1
(
umi
).
Level1
.
pfnAllocate
==
my_alloc
,
"
umi.Level1
.pfnAllocate was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U
1
(
umi
).
Level1
.
pfnFree
==
my_free
,
"
umi.Level1
.pfnFree was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnFree
,
my_free
);
ok
(
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
umi.Level1
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* marshall */
...
...
@@ -2131,21 +2131,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %u instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U
(
umi
.
Level1
)
.
Buffer
==
buffer
+
15
,
"
U(umi.Level1)
.Buffer was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
Buffer
,
buffer
);
ok
(
U
(
umi
.
Level1
)
.
BufferSize
==
1
,
"
U(umi.Level1)
.BufferSize was %u instead of 1
\n
"
,
U
(
umi
.
Level1
)
.
BufferSize
);
ok
(
U
(
umi
.
Level1
)
.
pfnAllocate
==
my_alloc
,
"
U(umi.Level1)
.pfnAllocate was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnAllocate
,
my_alloc
);
ok
(
U
(
umi
.
Level1
)
.
pfnFree
==
my_free
,
"
U(umi.Level1)
.pfnFree was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnFree
,
my_free
);
ok
(
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
U(umi.Level1)
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
ok
(
U
1
(
umi
).
Level1
.
Buffer
==
buffer
+
15
,
"
umi.Level1
.Buffer was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
Buffer
,
buffer
);
ok
(
U
1
(
umi
).
Level1
.
BufferSize
==
1
,
"
umi.Level1
.BufferSize was %u instead of 1
\n
"
,
U
1
(
umi
).
Level1
.
BufferSize
);
ok
(
U
1
(
umi
).
Level1
.
pfnAllocate
==
my_alloc
,
"
umi.Level1
.pfnAllocate was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U
1
(
umi
).
Level1
.
pfnFree
==
my_free
,
"
umi.Level1
.pfnFree was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnFree
,
my_free
);
ok
(
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
umi.Level1
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* free */
...
...
@@ -2165,21 +2165,21 @@ static void test_NdrGetUserMarshalInfo(void)
ok
(
umi
.
InformationLevel
==
1
,
"umi.InformationLevel was %u instead of 1
\n
"
,
umi
.
InformationLevel
);
ok
(
U
(
umi
.
Level1
)
.
Buffer
==
NULL
,
"
U(umi.Level1)
.Buffer was %p instead of NULL
\n
"
,
U
(
umi
.
Level1
)
.
Buffer
);
ok
(
U
(
umi
.
Level1
)
.
BufferSize
==
0
,
"
U(umi.Level1)
.BufferSize was %u instead of 0
\n
"
,
U
(
umi
.
Level1
)
.
BufferSize
);
ok
(
U
(
umi
.
Level1
)
.
pfnAllocate
==
my_alloc
,
"
U(umi.Level1)
.pfnAllocate was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnAllocate
,
my_alloc
);
ok
(
U
(
umi
.
Level1
)
.
pfnFree
==
my_free
,
"
U(umi.Level1)
.pfnFree was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pfnFree
,
my_free
);
ok
(
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
U(umi.Level1)
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
(
umi
.
Level1
)
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
ok
(
U
1
(
umi
).
Level1
.
Buffer
==
NULL
,
"
umi.Level1
.Buffer was %p instead of NULL
\n
"
,
U
1
(
umi
).
Level1
.
Buffer
);
ok
(
U
1
(
umi
).
Level1
.
BufferSize
==
0
,
"
umi.Level1
.BufferSize was %u instead of 0
\n
"
,
U
1
(
umi
).
Level1
.
BufferSize
);
ok
(
U
1
(
umi
).
Level1
.
pfnAllocate
==
my_alloc
,
"
umi.Level1
.pfnAllocate was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnAllocate
,
my_alloc
);
ok
(
U
1
(
umi
).
Level1
.
pfnFree
==
my_free
,
"
umi.Level1
.pfnFree was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pfnFree
,
my_free
);
ok
(
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
==
rpc_channel_buffer
,
"
umi.Level1
.pRpcChannelBuffer was %p instead of %p
\n
"
,
U
1
(
umi
).
Level1
.
pRpcChannelBuffer
,
rpc_channel_buffer
);
/* boundary test */
...
...
@@ -2194,9 +2194,9 @@ static void test_NdrGetUserMarshalInfo(void)
status
=
pNdrGetUserMarshalInfo
(
&
umcb
.
Flags
,
1
,
&
umi
);
ok
(
status
==
RPC_S_OK
,
"NdrGetUserMarshalInfo failed with error %d
\n
"
,
status
);
ok
(
U
(
umi
.
Level1
)
.
BufferSize
==
0
,
"
U(umi.Level1)
.BufferSize was %u instead of 0
\n
"
,
U
(
umi
.
Level1
)
.
BufferSize
);
ok
(
U
1
(
umi
).
Level1
.
BufferSize
==
0
,
"
umi.Level1
.BufferSize was %u instead of 0
\n
"
,
U
1
(
umi
).
Level1
.
BufferSize
);
/* error conditions */
...
...
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