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
03edb068
Commit
03edb068
authored
Oct 18, 2022
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Oct 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Use ARRAY_SIZE instead of open coding it.
parent
90b6288f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
drive.c
dlls/kernel32/tests/drive.c
+2
-4
No files found.
dlls/kernel32/tests/drive.c
View file @
03edb068
...
...
@@ -159,8 +159,7 @@ static void test_GetDiskFreeSpaceA(void)
ret
=
GetDiskFreeSpaceA
(
"C:
\\
"
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceA error %ld
\n
"
,
GetLastError
());
ret
=
GetVolumeNameForVolumeMountPointA
(
"C:
\\
"
,
volume_guid_path
,
sizeof
(
volume_guid_path
)
/
sizeof
(
volume_guid_path
[
0
]));
ret
=
GetVolumeNameForVolumeMountPointA
(
"C:
\\
"
,
volume_guid_path
,
ARRAY_SIZE
(
volume_guid_path
));
ok
(
ret
,
"GetVolumeNameForVolumeMountPointA error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceA
(
volume_guid_path
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
...
...
@@ -251,8 +250,7 @@ static void test_GetDiskFreeSpaceW(void)
ret
=
GetDiskFreeSpaceW
(
c_drive_pathW
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
ok
(
ret
,
"GetDiskFreeSpaceW error %ld
\n
"
,
GetLastError
());
ret
=
GetVolumeNameForVolumeMountPointW
(
c_drive_pathW
,
volume_guid_path
,
sizeof
(
volume_guid_path
)
/
sizeof
(
volume_guid_path
[
0
]));
ret
=
GetVolumeNameForVolumeMountPointW
(
c_drive_pathW
,
volume_guid_path
,
ARRAY_SIZE
(
volume_guid_path
));
ok
(
ret
,
"GetVolumeNameForVolumeMountPointW error %ld
\n
"
,
GetLastError
());
ret
=
GetDiskFreeSpaceW
(
volume_guid_path
,
&
sectors_per_cluster
,
&
bytes_per_sector
,
&
free_clusters
,
&
total_clusters
);
...
...
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