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
e32fe9ba
Commit
e32fe9ba
authored
Jul 24, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b788e9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
device.c
dlls/mountmgr.sys/device.c
+3
-3
No files found.
dlls/mountmgr.sys/device.c
View file @
e32fe9ba
...
...
@@ -658,7 +658,7 @@ static void create_drive_devices(void)
if
(
!
RegQueryValueExW
(
drives_key
,
driveW
,
NULL
,
&
type
,
(
BYTE
*
)
buffer
,
&
size
)
&&
type
==
REG_SZ
)
{
for
(
j
=
0
;
j
<
sizeof
(
drive_types
)
/
sizeof
(
drive_types
[
0
]
);
j
++
)
for
(
j
=
0
;
j
<
ARRAY_SIZE
(
drive_types
);
j
++
)
if
(
drive_types
[
j
][
0
]
&&
!
strcmpiW
(
buffer
,
drive_types
[
j
]
))
{
drive_type
=
j
;
...
...
@@ -1123,7 +1123,7 @@ static void create_port_devices( DRIVER_OBJECT *driver )
p
[
1
]
=
'o'
;
p
[
2
]
=
'm'
;
search_paths
=
serial_search_paths
;
num_search_paths
=
sizeof
(
serial_search_paths
)
/
sizeof
(
serial_search_paths
[
0
]
);
num_search_paths
=
ARRAY_SIZE
(
serial_search_paths
);
windows_ports_key_name
=
serialcomm_keyW
;
}
else
...
...
@@ -1132,7 +1132,7 @@ static void create_port_devices( DRIVER_OBJECT *driver )
p
[
1
]
=
'p'
;
p
[
2
]
=
't'
;
search_paths
=
parallel_search_paths
;
num_search_paths
=
sizeof
(
parallel_search_paths
)
/
sizeof
(
parallel_search_paths
[
0
]
);
num_search_paths
=
ARRAY_SIZE
(
parallel_search_paths
);
windows_ports_key_name
=
parallel_ports_keyW
;
}
p
+=
3
;
...
...
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