include: Define IoGetCurrentIrpStackLocation based on NONAMELESSUNION and NONAMELESSSTRUCT.
This commit is contained in:
parent
a9a7d963c2
commit
394839fecf
|
@ -1021,7 +1021,19 @@ typedef enum _MM_SYSTEM_SIZE
|
|||
|
||||
NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle);
|
||||
|
||||
#define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation)
|
||||
#ifdef NONAMELESSUNION
|
||||
# ifdef NONAMELESSSTRUCT
|
||||
# define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.u2.CurrentStackLocation)
|
||||
# else
|
||||
# define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.u2.CurrentStackLocation)
|
||||
# endif
|
||||
#else
|
||||
# ifdef NONAMELESSSTRUCT
|
||||
# define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.CurrentStackLocation)
|
||||
# else
|
||||
# define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define KernelMode 0
|
||||
#define UserMode 1
|
||||
|
|
Loading…
Reference in New Issue