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
5415b62f
Commit
5415b62f
authored
Feb 24, 2010
by
Charles Davis
Committed by
Alexandre Julliard
Feb 25, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Don't accidentally redefine a member in struct _IRP (LLVM/Clang).
parent
69ee0ad1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
device.c
dlls/mountmgr.sys/device.c
+1
-1
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+1
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+6
-6
wdm.h
include/ddk/wdm.h
+2
-2
No files found.
dlls/mountmgr.sys/device.c
View file @
5415b62f
...
@@ -858,7 +858,7 @@ NTSTATUS query_dos_device( int letter, enum device_type *type, char **device, ch
...
@@ -858,7 +858,7 @@ NTSTATUS query_dos_device( int letter, enum device_type *type, char **device, ch
/* handler for ioctls on the harddisk device */
/* handler for ioctls on the harddisk device */
static
NTSTATUS
WINAPI
harddisk_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
static
NTSTATUS
WINAPI
harddisk_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
{
IO_STACK_LOCATION
*
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
;
IO_STACK_LOCATION
*
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
;
struct
disk_device
*
dev
=
device
->
DeviceExtension
;
struct
disk_device
*
dev
=
device
->
DeviceExtension
;
TRACE
(
"ioctl %x insize %u outsize %u
\n
"
,
TRACE
(
"ioctl %x insize %u outsize %u
\n
"
,
...
...
dlls/mountmgr.sys/mountmgr.c
View file @
5415b62f
...
@@ -351,7 +351,7 @@ done:
...
@@ -351,7 +351,7 @@ done:
/* handler for ioctls on the mount manager device */
/* handler for ioctls on the mount manager device */
static
NTSTATUS
WINAPI
mountmgr_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
static
NTSTATUS
WINAPI
mountmgr_ioctl
(
DEVICE_OBJECT
*
device
,
IRP
*
irp
)
{
{
IO_STACK_LOCATION
*
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
;
IO_STACK_LOCATION
*
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
;
TRACE
(
"ioctl %x insize %u outsize %u
\n
"
,
TRACE
(
"ioctl %x insize %u outsize %u
\n
"
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
,
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
,
...
...
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
5415b62f
...
@@ -144,7 +144,7 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
...
@@ -144,7 +144,7 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
irp
.
AssociatedIrp
.
SystemBuffer
=
in_buff
;
irp
.
AssociatedIrp
.
SystemBuffer
=
in_buff
;
irp
.
UserBuffer
=
out_buff
;
irp
.
UserBuffer
=
out_buff
;
irp
.
MdlAddress
=
&
mdl
;
irp
.
MdlAddress
=
&
mdl
;
irp
.
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
=
&
irpsp
;
irp
.
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
=
&
irpsp
;
irp
.
UserIosb
=
NULL
;
irp
.
UserIosb
=
NULL
;
irpsp
.
MajorFunction
=
IRP_MJ_DEVICE_CONTROL
;
irpsp
.
MajorFunction
=
IRP_MJ_DEVICE_CONTROL
;
...
@@ -294,7 +294,7 @@ void WINAPI IoInitializeIrp( IRP *irp, USHORT size, CCHAR stack_size )
...
@@ -294,7 +294,7 @@ void WINAPI IoInitializeIrp( IRP *irp, USHORT size, CCHAR stack_size )
InitializeListHead
(
&
irp
->
ThreadListEntry
);
InitializeListHead
(
&
irp
->
ThreadListEntry
);
irp
->
StackCount
=
stack_size
;
irp
->
StackCount
=
stack_size
;
irp
->
CurrentLocation
=
stack_size
+
1
;
irp
->
CurrentLocation
=
stack_size
+
1
;
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
=
irp
->
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
=
(
PIO_STACK_LOCATION
)(
irp
+
1
)
+
stack_size
;
(
PIO_STACK_LOCATION
)(
irp
+
1
)
+
stack_size
;
}
}
...
@@ -434,7 +434,7 @@ PIRP WINAPI IoBuildDeviceIoControlRequest( ULONG IoControlCode,
...
@@ -434,7 +434,7 @@ PIRP WINAPI IoBuildDeviceIoControlRequest( ULONG IoControlCode,
instance
->
irp
=
irp
;
instance
->
irp
=
irp
;
list_add_tail
(
&
Irps
,
&
instance
->
entry
);
list_add_tail
(
&
Irps
,
&
instance
->
entry
);
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
-
1
;
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
-
1
;
irpsp
->
MajorFunction
=
InternalDeviceIoControl
?
irpsp
->
MajorFunction
=
InternalDeviceIoControl
?
IRP_MJ_INTERNAL_DEVICE_CONTROL
:
IRP_MJ_DEVICE_CONTROL
;
IRP_MJ_INTERNAL_DEVICE_CONTROL
:
IRP_MJ_DEVICE_CONTROL
;
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
=
IoControlCode
;
irpsp
->
Parameters
.
DeviceIoControl
.
IoControlCode
=
IoControlCode
;
...
@@ -647,7 +647,7 @@ NTSTATUS WINAPI IofCallDriver( DEVICE_OBJECT *device, IRP *irp )
...
@@ -647,7 +647,7 @@ NTSTATUS WINAPI IofCallDriver( DEVICE_OBJECT *device, IRP *irp )
TRACE
(
"%p %p
\n
"
,
device
,
irp
);
TRACE
(
"%p %p
\n
"
,
device
,
irp
);
--
irp
->
CurrentLocation
;
--
irp
->
CurrentLocation
;
irpsp
=
--
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
;
irpsp
=
--
irp
->
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
;
dispatch
=
device
->
DriverObject
->
MajorFunction
[
irpsp
->
MajorFunction
];
dispatch
=
device
->
DriverObject
->
MajorFunction
[
irpsp
->
MajorFunction
];
status
=
dispatch
(
device
,
irp
);
status
=
dispatch
(
device
,
irp
);
...
@@ -744,7 +744,7 @@ void WINAPI IofCompleteRequest( IRP *irp, UCHAR priority_boost )
...
@@ -744,7 +744,7 @@ void WINAPI IofCompleteRequest( IRP *irp, UCHAR priority_boost )
status
=
irp
->
IoStatus
.
u
.
Status
;
status
=
irp
->
IoStatus
.
u
.
Status
;
while
(
irp
->
CurrentLocation
<=
irp
->
StackCount
)
while
(
irp
->
CurrentLocation
<=
irp
->
StackCount
)
{
{
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
;
irpsp
=
irp
->
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
;
routine
=
irpsp
->
CompletionRoutine
;
routine
=
irpsp
->
CompletionRoutine
;
call_flag
=
0
;
call_flag
=
0
;
/* FIXME: add SL_INVOKE_ON_CANCEL support */
/* FIXME: add SL_INVOKE_ON_CANCEL support */
...
@@ -756,7 +756,7 @@ void WINAPI IofCompleteRequest( IRP *irp, UCHAR priority_boost )
...
@@ -756,7 +756,7 @@ void WINAPI IofCompleteRequest( IRP *irp, UCHAR priority_boost )
call_flag
=
1
;
call_flag
=
1
;
}
}
++
irp
->
CurrentLocation
;
++
irp
->
CurrentLocation
;
++
irp
->
Tail
.
Overlay
.
s
.
u
.
CurrentStackLocation
;
++
irp
->
Tail
.
Overlay
.
s
.
u
2
.
CurrentStackLocation
;
if
(
call_flag
)
if
(
call_flag
)
{
{
TRACE
(
"calling %p( %p, %p, %p )
\n
"
,
routine
,
TRACE
(
"calling %p( %p, %p, %p )
\n
"
,
routine
,
...
...
include/ddk/wdm.h
View file @
5415b62f
...
@@ -423,7 +423,7 @@ typedef struct _IRP {
...
@@ -423,7 +423,7 @@ typedef struct _IRP {
struct
{
struct
{
PVOID
DriverContext
[
4
];
PVOID
DriverContext
[
4
];
}
DUMMYSTRUCTNAME
;
}
DUMMYSTRUCTNAME
;
}
DUMMYUNIONNAME
;
}
DUMMYUNIONNAME
1
;
PETHREAD
Thread
;
PETHREAD
Thread
;
PCHAR
AuxiliaryBuffer
;
PCHAR
AuxiliaryBuffer
;
struct
{
struct
{
...
@@ -431,7 +431,7 @@ typedef struct _IRP {
...
@@ -431,7 +431,7 @@ typedef struct _IRP {
union
{
union
{
struct
_IO_STACK_LOCATION
*
CurrentStackLocation
;
struct
_IO_STACK_LOCATION
*
CurrentStackLocation
;
ULONG
PacketType
;
ULONG
PacketType
;
}
DUMMYUNIONNAME
;
}
DUMMYUNIONNAME
2
;
}
DUMMYSTRUCTNAME
;
}
DUMMYSTRUCTNAME
;
struct
_FILE_OBJECT
*
OriginalFileObject
;
struct
_FILE_OBJECT
*
OriginalFileObject
;
}
Overlay
;
}
Overlay
;
...
...
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