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
4d6aa7ca
Commit
4d6aa7ca
authored
Jan 07, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Jan 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Add tests for the RPC_MESSAGE members set by NdrClientInitializeNew.
parent
f2b1a110
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+18
-1
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
4d6aa7ca
...
...
@@ -891,11 +891,28 @@ static void test_client_init(void)
MIDL_STUB_MESSAGE
stubMsg
;
RPC_MESSAGE
rpcMsg
;
memset
(
&
rpcMsg
,
0
,
sizeof
(
rpcMsg
));
memset
(
&
rpcMsg
,
0
xcc
,
sizeof
(
rpcMsg
));
memset
(
&
stubMsg
,
0xcc
,
sizeof
(
stubMsg
));
NdrClientInitializeNew
(
&
rpcMsg
,
&
stubMsg
,
&
Object_StubDesc
,
1
);
#define TEST_POINTER_UNSET(field) ok(rpcMsg.field == (void *)0xcccccccc, #field " should have been unset instead of %p\n", rpcMsg.field)
ok
(
rpcMsg
.
Handle
==
NULL
,
"rpcMsg.Handle should have been NULL instead of %p
\n
"
,
rpcMsg
.
Handle
);
TEST_POINTER_UNSET
(
Buffer
);
ok
(
rpcMsg
.
BufferLength
==
0xcccccccc
,
"rpcMsg.BufferLength should have been unset instead of %d
\n
"
,
rpcMsg
.
BufferLength
);
todo_wine
ok
(
rpcMsg
.
ProcNum
==
0x8001
,
"rpcMsg.ProcNum should have been 0x8001 instead of 0x%x
\n
"
,
rpcMsg
.
ProcNum
);
TEST_POINTER_UNSET
(
TransferSyntax
);
ok
(
rpcMsg
.
RpcInterfaceInformation
==
Object_StubDesc
.
RpcInterfaceInformation
,
"rpcMsg.RpcInterfaceInformation should have been %p instead of %p
\n
"
,
Object_StubDesc
.
RpcInterfaceInformation
,
rpcMsg
.
RpcInterfaceInformation
);
/* Note: ReservedForRuntime not tested */
TEST_POINTER_UNSET
(
ManagerEpv
);
TEST_POINTER_UNSET
(
ImportContext
);
ok
(
rpcMsg
.
RpcFlags
==
0
,
"rpcMsg.RpcFlags should have been 0 instead of 0x%lx
\n
"
,
rpcMsg
.
RpcFlags
);
#undef TEST_POINTER_UNSET
#define TEST_ZERO(field, fmt) ok(stubMsg.field == 0, #field " should have been set to zero instead of " fmt "\n", stubMsg.field)
#define TEST_POINTER_UNSET(field) ok(stubMsg.field == (void *)0xcccccccc, #field " should have been unset instead of %p\n", stubMsg.field)
#define TEST_ULONG_UNSET(field) ok(stubMsg.field == 0xcccccccc, #field " should have been unset instead of 0x%x\n", stubMsg.field)
...
...
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