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
e6a47f1e
Commit
e6a47f1e
authored
Oct 21, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Return the drive pointer from get_dosdevices_path().
parent
f36690d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
device.c
dlls/mountmgr.sys/device.c
+5
-7
No files found.
dlls/mountmgr.sys/device.c
View file @
e6a47f1e
...
...
@@ -70,7 +70,7 @@ static struct list drives_list = LIST_INIT(drives_list);
static
DRIVER_OBJECT
*
harddisk_driver
;
static
char
*
get_dosdevices_path
(
void
)
static
char
*
get_dosdevices_path
(
char
**
drive
)
{
const
char
*
config_dir
=
wine_get_config_dir
();
size_t
len
=
strlen
(
config_dir
)
+
sizeof
(
"/dosdevices/a::"
);
...
...
@@ -79,6 +79,7 @@ static char *get_dosdevices_path(void)
{
strcpy
(
path
,
config_dir
);
strcat
(
path
,
"/dosdevices/a::"
);
*
drive
=
path
+
len
-
4
;
}
return
path
;
}
...
...
@@ -270,8 +271,7 @@ static int add_drive( const char *device, DWORD type )
if
(
stat
(
device
,
&
dev_st
)
==
-
1
||
!
is_valid_device
(
&
dev_st
))
return
-
1
;
if
(
!
(
path
=
get_dosdevices_path
()))
return
-
1
;
p
=
path
+
strlen
(
path
)
-
3
;
if
(
!
(
path
=
get_dosdevices_path
(
&
p
)))
return
-
1
;
memset
(
in_use
,
0
,
sizeof
(
in_use
)
);
...
...
@@ -332,8 +332,7 @@ static BOOL set_unix_mount_point( struct dos_drive *drive, const char *mount_poi
char
*
path
,
*
p
;
BOOL
modified
=
FALSE
;
if
(
!
(
path
=
get_dosdevices_path
()))
return
FALSE
;
p
=
path
+
strlen
(
path
)
-
3
;
if
(
!
(
path
=
get_dosdevices_path
(
&
p
)))
return
FALSE
;
p
[
0
]
=
'a'
+
drive
->
drive
;
p
[
2
]
=
0
;
...
...
@@ -372,8 +371,7 @@ static void create_drive_devices(void)
struct
dos_drive
*
drive
;
unsigned
int
i
;
if
(
!
(
path
=
get_dosdevices_path
()))
return
;
p
=
path
+
strlen
(
path
)
-
3
;
if
(
!
(
path
=
get_dosdevices_path
(
&
p
)))
return
;
for
(
i
=
0
;
i
<
MAX_DOS_DRIVES
;
i
++
)
{
...
...
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