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
cc906096
Commit
cc906096
authored
Jun 08, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c07f18fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
cstub.c
dlls/rpcrt4/tests/cstub.c
+1
-1
rpc.c
dlls/rpcrt4/tests/rpc.c
+2
-4
server.c
dlls/rpcrt4/tests/server.c
+1
-1
No files found.
dlls/rpcrt4/tests/cstub.c
View file @
cc906096
...
@@ -596,7 +596,7 @@ static IPSFactoryBuffer *test_NdrDllGetClassObject(void)
...
@@ -596,7 +596,7 @@ static IPSFactoryBuffer *test_NdrDllGetClassObject(void)
#undef VTBL_PROXY_TEST
#undef VTBL_PROXY_TEST
#undef VTBL_PROXY_TEST_NOT_ZERO
#undef VTBL_PROXY_TEST_NOT_ZERO
for
(
i
=
0
;
i
<
sizeof
(
interfaces
)
/
sizeof
(
interfaces
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
interfaces
);
i
++
)
ok
(
proxy_vtbl
[
i
]
->
header
.
piid
==
interfaces
[
i
],
ok
(
proxy_vtbl
[
i
]
->
header
.
piid
==
interfaces
[
i
],
"wrong proxy %u iid %p/%p
\n
"
,
i
,
proxy_vtbl
[
i
]
->
header
.
piid
,
interfaces
[
i
]
);
"wrong proxy %u iid %p/%p
\n
"
,
i
,
proxy_vtbl
[
i
]
->
header
.
piid
,
interfaces
[
i
]
);
...
...
dlls/rpcrt4/tests/rpc.c
View file @
cc906096
...
@@ -149,10 +149,8 @@ static void TestDceErrorInqText (void)
...
@@ -149,10 +149,8 @@ static void TestDceErrorInqText (void)
*/
*/
DWORD
dwCount
;
DWORD
dwCount
;
dwCount
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_SYSTEM
|
dwCount
=
FormatMessageA
(
FORMAT_MESSAGE_FROM_SYSTEM
|
FORMAT_MESSAGE_IGNORE_INSERTS
,
NULL
,
FORMAT_MESSAGE_IGNORE_INSERTS
,
RPC_S_NOT_RPC_ERROR
,
0
,
bufferInvalid
,
ARRAY_SIZE
(
bufferInvalid
),
NULL
);
NULL
,
RPC_S_NOT_RPC_ERROR
,
0
,
bufferInvalid
,
sizeof
(
bufferInvalid
)
/
sizeof
(
bufferInvalid
[
0
]),
NULL
);
/* A random sample of DceErrorInqText */
/* A random sample of DceErrorInqText */
/* 0 is success */
/* 0 is success */
...
...
dlls/rpcrt4/tests/server.c
View file @
cc906096
...
@@ -313,7 +313,7 @@ void __cdecl s_get_number_array(int x[20], int *n)
...
@@ -313,7 +313,7 @@ void __cdecl s_get_number_array(int x[20], int *n)
{
{
int
c
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
int
c
[]
=
{
0
,
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
};
memcpy
(
x
,
c
,
sizeof
(
c
));
memcpy
(
x
,
c
,
sizeof
(
c
));
*
n
=
sizeof
(
c
)
/
sizeof
(
c
[
0
]
);
*
n
=
ARRAY_SIZE
(
c
);
}
}
int
__cdecl
s_sum_cs
(
cs_t
*
cs
)
int
__cdecl
s_sum_cs
(
cs_t
*
cs
)
...
...
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