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
e85a5b2e
Commit
e85a5b2e
authored
Dec 21, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Require at least one of device or mount point to match when looking…
mountmgr: Require at least one of device or mount point to match when looking for an existing volume.
parent
1ec60967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
device.c
dlls/mountmgr.sys/device.c
+13
-2
No files found.
dlls/mountmgr.sys/device.c
View file @
e85a5b2e
...
...
@@ -422,6 +422,8 @@ static struct volume *find_matching_volume( const char *udi, const char *device,
LIST_FOR_EACH_ENTRY
(
volume
,
&
volumes_list
,
struct
volume
,
entry
)
{
int
match
=
0
;
/* when we have a udi we only match drives added manually */
if
(
udi
&&
volume
->
udi
)
continue
;
/* and when we don't have a udi we only match dynamic drives */
...
...
@@ -429,8 +431,17 @@ static struct volume *find_matching_volume( const char *udi, const char *device,
disk_device
=
volume
->
device
;
if
(
disk_device
->
type
!=
type
)
continue
;
if
(
device
&&
disk_device
->
unix_device
&&
strcmp
(
device
,
disk_device
->
unix_device
))
continue
;
if
(
mount_point
&&
disk_device
->
unix_mount
&&
strcmp
(
mount_point
,
disk_device
->
unix_mount
))
continue
;
if
(
device
&&
disk_device
->
unix_device
)
{
if
(
strcmp
(
device
,
disk_device
->
unix_device
))
continue
;
match
++
;
}
if
(
mount_point
&&
disk_device
->
unix_mount
)
{
if
(
strcmp
(
mount_point
,
disk_device
->
unix_mount
))
continue
;
match
++
;
}
if
(
!
match
)
continue
;
TRACE
(
"found matching volume %s for device %s mount %s type %u
\n
"
,
debugstr_guid
(
&
volume
->
guid
),
debugstr_a
(
device
),
debugstr_a
(
mount_point
),
type
);
return
grab_volume
(
volume
);
...
...
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