Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
1e0b8367
Commit
1e0b8367
authored
Oct 24, 2009
by
Jeremy White
Committed by
Alexandre Julliard
Oct 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: StructArg tests cannot rely on an unpacked structure memcmp.
parent
ee6856d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+12
-3
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
1e0b8367
...
...
@@ -521,9 +521,18 @@ static HRESULT WINAPI Widget_StructArgs(
MYSTRUCT
*
byptr
,
MYSTRUCT
arr
[
5
])
{
ok
(
memcmp
(
&
byval
,
&
MYSTRUCT_BYVAL
,
sizeof
(
MYSTRUCT
))
==
0
,
"Struct parameter passed by value corrupted
\n
"
);
ok
(
memcmp
(
byptr
,
&
MYSTRUCT_BYPTR
,
sizeof
(
MYSTRUCT
))
==
0
,
"Struct parameter passed by pointer corrupted
\n
"
);
ok
(
memcmp
(
arr
,
MYSTRUCT_ARRAY
,
sizeof
(
MYSTRUCT_ARRAY
))
==
0
,
"Array of structs corrupted
\n
"
);
int
i
,
diff
=
0
;
ok
(
byval
.
field1
==
MYSTRUCT_BYVAL
.
field1
&&
byval
.
field2
==
MYSTRUCT_BYVAL
.
field2
,
"Struct parameter passed by value corrupted
\n
"
);
ok
(
byptr
->
field1
==
MYSTRUCT_BYPTR
.
field1
&&
byptr
->
field2
==
MYSTRUCT_BYPTR
.
field2
,
"Struct parameter passed by pointer corrupted
\n
"
);
for
(
i
=
0
;
i
<
5
;
i
++
)
if
(
arr
[
i
].
field1
!=
MYSTRUCT_ARRAY
[
i
].
field1
||
arr
[
i
].
field2
!=
MYSTRUCT_ARRAY
[
i
].
field2
)
diff
++
;
ok
(
diff
==
0
,
"Array of structs corrupted
\n
"
);
return
S_OK
;
}
...
...
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