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
8377b246
Commit
8377b246
authored
Jan 10, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Fix marshalling data layout for Win64.
parent
ac543e5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
marshal.c
dlls/ole32/tests/marshal.c
+6
-3
No files found.
dlls/ole32/tests/marshal.c
View file @
8377b246
...
@@ -2056,15 +2056,18 @@ static void test_freethreadedmarshaldata(IStream *pStream, MSHCTX mshctx, void *
...
@@ -2056,15 +2056,18 @@ static void test_freethreadedmarshaldata(IStream *pStream, MSHCTX mshctx, void *
if
(
mshctx
==
MSHCTX_INPROC
)
if
(
mshctx
==
MSHCTX_INPROC
)
{
{
DWORD
expected_size
=
sizeof
(
DWORD
)
+
sizeof
(
void
*
)
+
sizeof
(
DWORD
)
+
sizeof
(
GUID
);
DWORD
expected_size
=
3
*
sizeof
(
DWORD
)
+
sizeof
(
GUID
);
ok
(
size
==
expected_size
,
"size should have been %d instead of %d
\n
"
,
expected_size
,
size
);
ok
(
size
==
expected_size
,
"size should have been %d instead of %d
\n
"
,
expected_size
,
size
);
ok
(
*
(
DWORD
*
)
marshal_data
==
mshlflags
,
"expected 0x%x, but got 0x%x for mshctx
\n
"
,
mshlflags
,
*
(
DWORD
*
)
marshal_data
);
ok
(
*
(
DWORD
*
)
marshal_data
==
mshlflags
,
"expected 0x%x, but got 0x%x for mshctx
\n
"
,
mshlflags
,
*
(
DWORD
*
)
marshal_data
);
marshal_data
+=
sizeof
(
DWORD
);
marshal_data
+=
sizeof
(
DWORD
);
ok
(
*
(
void
**
)
marshal_data
==
ptr
,
"expected %p, but got %p for mshctx
\n
"
,
ptr
,
*
(
void
**
)
marshal_data
);
ok
(
*
(
void
**
)
marshal_data
==
ptr
,
"expected %p, but got %p for mshctx
\n
"
,
ptr
,
*
(
void
**
)
marshal_data
);
marshal_data
+=
sizeof
(
void
*
);
marshal_data
+=
sizeof
(
void
*
);
ok
(
*
(
DWORD
*
)
marshal_data
==
0
,
"expected 0x0, but got 0x%x
\n
"
,
*
(
DWORD
*
)
marshal_data
);
if
(
sizeof
(
void
*
)
==
4
)
marshal_data
+=
sizeof
(
DWORD
);
{
ok
(
*
(
DWORD
*
)
marshal_data
==
0
,
"expected 0x0, but got 0x%x
\n
"
,
*
(
DWORD
*
)
marshal_data
);
marshal_data
+=
sizeof
(
DWORD
);
}
trace
(
"got guid data: {%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}
\n
"
,
trace
(
"got guid data: {%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x}
\n
"
,
((
GUID
*
)
marshal_data
)
->
Data1
,
((
GUID
*
)
marshal_data
)
->
Data2
,
((
GUID
*
)
marshal_data
)
->
Data3
,
((
GUID
*
)
marshal_data
)
->
Data1
,
((
GUID
*
)
marshal_data
)
->
Data2
,
((
GUID
*
)
marshal_data
)
->
Data3
,
((
GUID
*
)
marshal_data
)
->
Data4
[
0
],
((
GUID
*
)
marshal_data
)
->
Data4
[
1
],
((
GUID
*
)
marshal_data
)
->
Data4
[
2
],
((
GUID
*
)
marshal_data
)
->
Data4
[
3
],
((
GUID
*
)
marshal_data
)
->
Data4
[
0
],
((
GUID
*
)
marshal_data
)
->
Data4
[
1
],
((
GUID
*
)
marshal_data
)
->
Data4
[
2
],
((
GUID
*
)
marshal_data
)
->
Data4
[
3
],
...
...
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