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
8cba35d5
Commit
8cba35d5
authored
Sep 18, 2012
by
Charles Davis
Committed by
Alexandre Julliard
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Don't take the size of a pointer (Clang).
parent
b6515030
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tmarshal.c
dlls/oleaut32/tests/tmarshal.c
+6
-6
No files found.
dlls/oleaut32/tests/tmarshal.c
View file @
8cba35d5
...
...
@@ -596,11 +596,11 @@ static HRESULT WINAPI Widget_VarArg(
}
static
BOOL
mystruct_uint_ordered
(
UINT
uarr
[
8
]
)
static
BOOL
mystruct_uint_ordered
(
MYSTRUCT
*
mystruct
)
{
int
i
;
for
(
i
=
0
;
i
<
sizeof
(
uarr
)
/
sizeof
(
uarr
[
0
]);
i
++
)
if
(
uarr
[
i
]
!=
i
)
for
(
i
=
0
;
i
<
sizeof
(
mystruct
->
uarr
)
/
sizeof
(
mystruct
->
uarr
[
0
]);
i
++
)
if
(
mystruct
->
uarr
[
i
]
!=
i
)
return
0
;
return
1
;
...
...
@@ -615,16 +615,16 @@ static HRESULT WINAPI Widget_StructArgs(
int
i
,
diff
=
0
;
ok
(
byval
.
field1
==
MYSTRUCT_BYVAL
.
field1
&&
byval
.
field2
==
MYSTRUCT_BYVAL
.
field2
&&
mystruct_uint_ordered
(
byval
.
uarr
),
mystruct_uint_ordered
(
&
byval
),
"Struct parameter passed by value corrupted
\n
"
);
ok
(
byptr
->
field1
==
MYSTRUCT_BYPTR
.
field1
&&
byptr
->
field2
==
MYSTRUCT_BYPTR
.
field2
&&
mystruct_uint_ordered
(
byptr
->
uarr
),
mystruct_uint_ordered
(
byptr
),
"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
||
!
mystruct_uint_ordered
(
arr
[
i
].
uarr
))
!
mystruct_uint_ordered
(
&
arr
[
i
]
))
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