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
4003457f
Commit
4003457f
authored
Jan 16, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Fix values returned for IOCTL_STORAGE_GET_DEVICE_NUMBER on emulated disks.
parent
5b71d645
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+10
-4
No files found.
dlls/mountmgr.sys/mountmgr.c
View file @
4003457f
...
...
@@ -142,17 +142,17 @@ static NTSTATUS create_disk_device( DRIVER_OBJECT *driver, DWORD type, DEVICE_OB
case
DRIVE_REMOVABLE
:
info
->
devnum
.
DeviceType
=
FILE_DEVICE_DISK
;
info
->
devnum
.
DeviceNumber
=
i
;
info
->
devnum
.
PartitionNumber
=
0
;
info
->
devnum
.
PartitionNumber
=
~
0u
;
break
;
case
DRIVE_CDROM
:
info
->
devnum
.
DeviceType
=
FILE_DEVICE_CD_ROM
;
info
->
devnum
.
DeviceNumber
=
i
;
info
->
devnum
.
PartitionNumber
=
0
;
info
->
devnum
.
PartitionNumber
=
~
0u
;
break
;
case
DRIVE_FIXED
:
default:
/* FIXME */
info
->
devnum
.
DeviceType
=
FILE_DEVICE_DISK
;
info
->
devnum
.
DeviceNumber
=
1
;
info
->
devnum
.
DeviceNumber
=
0
;
info
->
devnum
.
PartitionNumber
=
i
;
break
;
}
...
...
@@ -441,6 +441,7 @@ static NTSTATUS WINAPI harddisk_driver_entry( DRIVER_OBJECT *driver, UNICODE_STR
UNICODE_STRING
nameW
,
linkW
;
DEVICE_OBJECT
*
device
;
NTSTATUS
status
;
struct
disk_device_info
*
info
;
driver
->
MajorFunction
[
IRP_MJ_DEVICE_CONTROL
]
=
harddisk_ioctl
;
...
...
@@ -449,13 +450,18 @@ static NTSTATUS WINAPI harddisk_driver_entry( DRIVER_OBJECT *driver, UNICODE_STR
RtlInitUnicodeString
(
&
nameW
,
harddisk0W
);
RtlInitUnicodeString
(
&
linkW
,
physdrive0W
);
if
(
!
(
status
=
IoCreateDevice
(
driver
,
0
,
&
nameW
,
0
,
0
,
FALSE
,
&
device
)))
if
(
!
(
status
=
IoCreateDevice
(
driver
,
sizeof
(
*
info
)
,
&
nameW
,
0
,
0
,
FALSE
,
&
device
)))
status
=
IoCreateSymbolicLink
(
&
linkW
,
&
nameW
);
if
(
status
)
{
FIXME
(
"failed to create device error %x
\n
"
,
status
);
return
status
;
}
info
=
device
->
DeviceExtension
;
info
->
name
=
nameW
;
info
->
devnum
.
DeviceType
=
FILE_DEVICE_DISK
;
info
->
devnum
.
DeviceNumber
=
0
;
info
->
devnum
.
PartitionNumber
=
0
;
create_drive_mount_points
(
driver
);
...
...
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