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
39d75dfb
Commit
39d75dfb
authored
Jun 19, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Fix the marshalling test for Win9x.
parent
c3c8aa3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
ndr_marshall.c
dlls/rpcrt4/tests/ndr_marshall.c
+10
-2
No files found.
dlls/rpcrt4/tests/ndr_marshall.c
View file @
39d75dfb
...
...
@@ -211,8 +211,16 @@ static void test_pointer_marshal(const unsigned char *formattypes,
ptr
=
NdrPointerMarshall
(
&
StubMsg
,
memsrc
,
formattypes
);
ok
(
ptr
==
NULL
,
"%s: ret %p
\n
"
,
msgpfx
,
ptr
);
ok
(
StubMsg
.
Buffer
-
StubMsg
.
BufferStart
==
wiredatalen
,
"%s: Buffer %p Start %p len %d
\n
"
,
msgpfx
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
,
wiredatalen
);
ok
(
!
memcmp
(
StubMsg
.
BufferStart
,
wiredata
,
wiredatalen
),
"%s: incorrectly marshaled
\n
"
,
msgpfx
);
if
(
srcsize
==
8
&&
wiredatalen
==
16
&&
StubMsg
.
Buffer
-
StubMsg
.
BufferStart
==
12
)
{
/* win9x doesn't align 8-byte types properly */
wiredatalen
=
12
;
}
else
{
ok
(
StubMsg
.
Buffer
-
StubMsg
.
BufferStart
==
wiredatalen
,
"%s: Buffer %p Start %p len %d
\n
"
,
msgpfx
,
StubMsg
.
Buffer
,
StubMsg
.
BufferStart
,
wiredatalen
);
ok
(
!
memcmp
(
StubMsg
.
BufferStart
,
wiredata
,
wiredatalen
),
"%s: incorrectly marshaled
\n
"
,
msgpfx
);
}
StubMsg
.
Buffer
=
StubMsg
.
BufferStart
;
StubMsg
.
MemorySize
=
0
;
...
...
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