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
63bc9c48
Commit
63bc9c48
authored
Mar 23, 2010
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Mar 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Frame device service functions with IoGetCurrentIrpStackLocation and IoCompleteRequest.
parent
394839fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
device.c
dlls/mountmgr.sys/device.c
+2
-1
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+2
-1
No files found.
dlls/mountmgr.sys/device.c
View file @
63bc9c48
...
...
@@ -858,7 +858,7 @@ NTSTATUS query_dos_device( int letter, enum device_type *type, char **device, ch
/* handler for ioctls on the harddisk device */
static
NTSTATUS
WINAPI
harddisk_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
IO_STACK_LOCATION
*
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u2
.
CurrentStackLocation
;
IO_STACK_LOCATION
*
irpsp
=
IoGetCurrentIrpStackLocation
(
irp
)
;
struct
disk_device
*
dev
=
device
->
DeviceExtension
;
TRACE
(
"ioctl %x insize %u outsize %u
\n
"
,
...
...
@@ -904,6 +904,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
}
LeaveCriticalSection
(
&
device_section
);
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
return
irp
->
IoStatus
.
u
.
Status
;
}
...
...
dlls/mountmgr.sys/mountmgr.c
View file @
63bc9c48
...
...
@@ -351,7 +351,7 @@ done:
/* handler for ioctls on the mount manager device */
static
NTSTATUS
WINAPI
mountmgr_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
IO_STACK_LOCATION
*
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u2
.
CurrentStackLocation
;
IO_STACK_LOCATION
*
irpsp
=
IoGetCurrentIrpStackLocation
(
irp
)
;
TRACE
(
"ioctl %x insize %u outsize %u
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
,
...
...
@@ -390,6 +390,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
irp
->
IoStatus
.
u
.
Status
=
STATUS_NOT_SUPPORTED
;
break
;
}
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
return
irp
->
IoStatus
.
u
.
Status
;
}
...
...
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