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
55ef1f4d
Commit
55ef1f4d
authored
Jun 06, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jun 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netapi32/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44bd013e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
access.c
dlls/netapi32/tests/access.c
+4
-4
wksta.c
dlls/netapi32/tests/wksta.c
+2
-2
No files found.
dlls/netapi32/tests/access.c
View file @
55ef1f4d
...
...
@@ -74,7 +74,7 @@ static BOOL init_access_tests(void)
BOOL
rc
;
user_name
[
0
]
=
0
;
dwSize
=
sizeof
(
user_name
)
/
sizeof
(
WCHAR
);
dwSize
=
ARRAY_SIZE
(
user_name
);
rc
=
GetUserNameW
(
user_name
,
&
dwSize
);
if
(
rc
==
FALSE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
...
...
@@ -84,7 +84,7 @@ static BOOL init_access_tests(void)
ok
(
rc
,
"User Name Retrieved
\n
"
);
computer_name
[
0
]
=
0
;
dwSize
=
sizeof
(
computer_name
)
/
sizeof
(
WCHAR
);
dwSize
=
ARRAY_SIZE
(
computer_name
);
ok
(
GetComputerNameW
(
computer_name
,
&
dwSize
),
"Computer Name Retrieved
\n
"
);
return
TRUE
;
}
...
...
@@ -521,7 +521,7 @@ static void test_DavGetHTTPFromUNCPath(void)
ok
(
ret
==
ERROR_INSUFFICIENT_BUFFER
,
"got %u
\n
"
,
ret
);
ok
(
size
==
12
,
"got %u
\n
"
,
size
);
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
buf
[
0
]
=
0
;
size
=
tests
[
i
].
size
;
...
...
@@ -685,7 +685,7 @@ static void test_DavGetUNCFromHTTPPath(void)
ok
(
ret
==
ERROR_INSUFFICIENT_BUFFER
,
"got %u
\n
"
,
ret
);
ok
(
size
==
25
,
"got %u
\n
"
,
size
);
for
(
i
=
0
;
i
<
sizeof
(
tests
)
/
sizeof
(
tests
[
0
]
);
i
++
)
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
tests
);
i
++
)
{
buf
[
0
]
=
0
;
size
=
tests
[
i
].
size
;
...
...
dlls/netapi32/tests/wksta.c
View file @
55ef1f4d
...
...
@@ -50,7 +50,7 @@ static BOOL init_wksta_tests(void)
BOOL
rc
;
user_name
[
0
]
=
0
;
dwSize
=
sizeof
(
user_name
)
/
sizeof
(
user_name
[
0
]
);
dwSize
=
ARRAY_SIZE
(
user_name
);
rc
=
GetUserNameW
(
user_name
,
&
dwSize
);
if
(
rc
==
FALSE
&&
GetLastError
()
==
ERROR_CALL_NOT_IMPLEMENTED
)
{
win_skip
(
"GetUserNameW is not implemented
\n
"
);
...
...
@@ -59,7 +59,7 @@ static BOOL init_wksta_tests(void)
ok
(
rc
,
"User Name Retrieved
\n
"
);
computer_name
[
0
]
=
0
;
dwSize
=
sizeof
(
computer_name
)
/
sizeof
(
computer_name
[
0
]
);
dwSize
=
ARRAY_SIZE
(
computer_name
);
ok
(
GetComputerNameW
(
computer_name
,
&
dwSize
),
"Computer Name Retrieved
\n
"
);
return
TRUE
;
}
...
...
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