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
fd7b277d
Commit
fd7b277d
authored
May 06, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 07, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Fix ndr_marshall test failures.
Created with help from Robert Shearman.
parent
9e717aa2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+15
-5
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
fd7b277d
...
...
@@ -514,7 +514,9 @@ static void test_nontrivial_pointer_types(void)
NdrPointerBufferSize
(
&
StubMsg
,
(
unsigned
char
*
)
p1
,
&
fmtstr_ref_unique_out
[
4
]
);
ok
(
StubMsg
.
BufferLength
==
5
,
"length %d
\n
"
,
StubMsg
.
BufferLength
);
/* Windows overestimates the buffer size */
ok
(
StubMsg
.
BufferLength
>=
5
,
"length %d
\n
"
,
StubMsg
.
BufferLength
);
/*NdrGetBuffer(&_StubMsg, _StubMsg.BufferLength, NULL);*/
StubMsg
.
RpcMsg
->
Buffer
=
StubMsg
.
BufferStart
=
StubMsg
.
Buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
StubMsg
.
BufferLength
);
...
...
@@ -1706,7 +1708,7 @@ static void test_nonconformant_string(void)
static
void
test_ndr_buffer
(
void
)
{
static
unsigned
char
ncalrpc
[]
=
"ncalrpc"
;
static
unsigned
char
endpoint
[]
=
"winetest:
"
__FILE__
;
static
unsigned
char
endpoint
[]
=
"winetest:
test_ndr_buffer"
;
RPC_MESSAGE
RpcMessage
;
MIDL_STUB_MESSAGE
StubMsg
;
MIDL_STUB_DESC
StubDesc
=
Object_StubDesc
;
...
...
@@ -1717,9 +1719,17 @@ static void test_ndr_buffer(void)
StubDesc
.
RpcInterfaceInformation
=
(
void
*
)
&
IFoo___RpcServerInterface
;
ok
(
RPC_S_OK
==
RpcServerUseProtseqEp
(
ncalrpc
,
20
,
endpoint
,
NULL
),
"RpcServerUseProtseqEp
\n
"
);
ok
(
RPC_S_OK
==
RpcServerRegisterIf
(
IFoo_v0_0_s_ifspec
,
NULL
,
NULL
),
"RpcServerRegisterIf
\n
"
);
ok
(
RPC_S_OK
==
RpcServerListen
(
1
,
20
,
TRUE
),
"RpcServerListen
\n
"
);
status
=
RpcServerUseProtseqEp
(
ncalrpc
,
20
,
endpoint
,
NULL
);
ok
(
RPC_S_OK
==
status
,
"RpcServerUseProtseqEp failed with status %lu
\n
"
,
status
);
status
=
RpcServerRegisterIf
(
IFoo_v0_0_s_ifspec
,
NULL
,
NULL
);
ok
(
RPC_S_OK
==
status
,
"RpcServerRegisterIf failed with status %lu
\n
"
,
status
);
status
=
RpcServerListen
(
1
,
20
,
TRUE
);
ok
(
RPC_S_OK
==
status
,
"RpcServerListen failed with status %lu
\n
"
,
status
);
if
(
status
!=
RPC_S_OK
)
{
/* Failed to create a server, running client tests is useless */
return
;
}
status
=
RpcStringBindingCompose
(
NULL
,
ncalrpc
,
NULL
,
endpoint
,
NULL
,
&
binding
);
ok
(
status
==
RPC_S_OK
,
"RpcStringBindingCompose failed (%lu)
\n
"
,
status
);
...
...
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