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
5ea9d65c
Commit
5ea9d65c
authored
Oct 21, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Create a new harddisk device for dynamic harddisk drives.
parent
73229f05
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
device.c
dlls/mountmgr.sys/device.c
+19
-6
No files found.
dlls/mountmgr.sys/device.c
View file @
5ea9d65c
...
...
@@ -134,8 +134,9 @@ static void send_notify( int drive, int code )
/* create the disk device for a given drive */
static
NTSTATUS
create_disk_device
(
const
char
*
udi
,
DWORD
type
,
struct
dos_drive
**
drive_ret
)
{
static
const
WCHAR
harddiskW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'\\'
,
'H'
,
'a'
,
'r'
,
'd'
,
'd'
,
'i'
,
's'
,
'k'
,
'V'
,
'o'
,
'l'
,
'u'
,
'm'
,
'e'
,
'%'
,
'u'
,
0
};
static
const
WCHAR
harddiskvolW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'\\'
,
'H'
,
'a'
,
'r'
,
'd'
,
'd'
,
'i'
,
's'
,
'k'
,
'V'
,
'o'
,
'l'
,
'u'
,
'm'
,
'e'
,
'%'
,
'u'
,
0
};
static
const
WCHAR
harddiskW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'\\'
,
'H'
,
'a'
,
'r'
,
'd'
,
'd'
,
'i'
,
's'
,
'k'
,
'%'
,
'u'
,
0
};
static
const
WCHAR
cdromW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'\\'
,
'C'
,
'd'
,
'R'
,
'o'
,
'm'
,
'%'
,
'u'
,
0
};
static
const
WCHAR
floppyW
[]
=
{
'\\'
,
'D'
,
'e'
,
'v'
,
'i'
,
'c'
,
'e'
,
'\\'
,
'F'
,
'l'
,
'o'
,
'p'
,
'p'
,
'y'
,
'%'
,
'u'
,
0
};
...
...
@@ -156,8 +157,12 @@ static NTSTATUS create_disk_device( const char *udi, DWORD type, struct dos_driv
break
;
case
DRIVE_FIXED
:
default:
/* FIXME */
format
=
harddiskW
;
first
=
1
;
/* harddisk volumes start counting from 1 */
if
(
udi
)
format
=
harddiskW
;
else
{
format
=
harddiskvolW
;
first
=
1
;
/* harddisk volumes start counting from 1 */
}
break
;
}
...
...
@@ -205,8 +210,16 @@ static NTSTATUS create_disk_device( const char *udi, DWORD type, struct dos_driv
case
DRIVE_FIXED
:
default:
/* FIXME */
drive
->
devnum
.
DeviceType
=
FILE_DEVICE_DISK
;
drive
->
devnum
.
DeviceNumber
=
0
;
drive
->
devnum
.
PartitionNumber
=
i
;
if
(
udi
)
{
drive
->
devnum
.
DeviceNumber
=
i
;
drive
->
devnum
.
PartitionNumber
=
0
;
}
else
{
drive
->
devnum
.
DeviceNumber
=
0
;
drive
->
devnum
.
PartitionNumber
=
i
;
}
break
;
}
list_add_tail
(
&
drives_list
,
&
drive
->
entry
);
...
...
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