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
7b7ac02e
Commit
7b7ac02e
authored
Jul 22, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Better reuse of existing devices.
parent
968161e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
device.c
dlls/mountmgr.sys/device.c
+11
-10
No files found.
dlls/mountmgr.sys/device.c
View file @
7b7ac02e
...
...
@@ -630,22 +630,23 @@ NTSTATUS add_dos_device( int letter, const char *udi, const char *device,
status
=
STATUS_OBJECT_NAME_COLLISION
;
goto
done
;
}
LIST_FOR_EACH_ENTRY_SAFE
(
drive
,
next
,
&
drives_list
,
struct
dos_drive
,
entry
)
{
if
(
drive
->
volume
->
udi
&&
!
strcmp
(
udi
,
drive
->
volume
->
udi
))
goto
found
;
if
(
drive
->
drive
==
letter
)
delete_dos_device
(
drive
);
}
}
else
/* simply reset the device symlink */
{
*
p
=
'a'
+
letter
;
update_symlink
(
path
,
device
,
NULL
);
}
LIST_FOR_EACH_ENTRY_SAFE
(
drive
,
next
,
&
drives_list
,
struct
dos_drive
,
entry
)
{
if
(
udi
&&
drive
->
volume
->
udi
&&
!
strcmp
(
udi
,
drive
->
volume
->
udi
))
LIST_FOR_EACH_ENTRY
(
drive
,
&
drives_list
,
struct
dos_drive
,
entry
)
{
if
(
type
==
drive
->
volume
->
device
->
type
)
goto
found
;
delete_dos_device
(
driv
e
);
continue
;
if
(
drive
->
drive
!=
letter
)
continue
;
update_symlink
(
path
,
device
,
drive
->
volume
->
device
->
unix_devic
e
);
goto
found
;
}
if
(
drive
->
drive
==
letter
)
delete_dos_device
(
drive
);
update_symlink
(
path
,
device
,
NULL
);
}
if
((
status
=
create_dos_device
(
udi
,
letter
,
type
,
&
drive
)))
goto
done
;
...
...
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