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
782ec11a
Commit
782ec11a
authored
May 12, 2009
by
Huw Davies
Committed by
Alexandre Julliard
May 12, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32/tests: Make the size tests for the WdtpInterfacePointer marshaller more restrictive.
parent
87cd36db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
usrmarshal.c
dlls/ole32/tests/usrmarshal.c
+3
-2
No files found.
dlls/ole32/tests/usrmarshal.c
View file @
782ec11a
...
...
@@ -530,14 +530,15 @@ static void test_marshal_WdtpInterfacePointer(void)
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
NULL
,
0
,
MSHCTX_INPROC
);
size
=
WdtpInterfacePointer_UserSize
(
&
umcb
.
Flags
,
umcb
.
Flags
,
0
,
unk
,
&
IID_IUnknown
);
todo_wine
ok
(
size
>
28
,
"size should be > 28
bytes, not %d
\n
"
,
size
);
ok
(
size
>
=
0x4c
,
"size should be >= 0x4c
bytes, not %d
\n
"
,
size
);
trace
(
"WdtpInterfacePointer_UserSize returned %d
\n
"
,
size
);
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
init_user_marshal_cb
(
&
umcb
,
&
stub_msg
,
&
rpc_msg
,
buffer
,
size
,
MSHCTX_INPROC
);
buffer_end
=
WdtpInterfacePointer_UserMarshal
(
&
umcb
.
Flags
,
umcb
.
Flags
,
buffer
,
unk
,
&
IID_IUnknown
);
wireip
=
buffer
;
if
(
size
>=
28
)
if
(
size
>=
0x4c
)
{
ok
(
buffer_end
==
buffer
+
0x4c
,
"buffer_end %p buffer %p
\n
"
,
buffer_end
,
buffer
);
ok
(
*
(
DWORD
*
)
wireip
==
0x44
,
"wireip + 0x0 should be 0x44 instead of 0x%08x
\n
"
,
*
(
DWORD
*
)
wireip
);
wireip
+=
sizeof
(
DWORD
);
ok
(
*
(
DWORD
*
)
wireip
==
0x44
,
"wireip + 0x4 should be 0x44 instead of 0x%08x
\n
"
,
*
(
DWORD
*
)
wireip
);
...
...
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