Module: wine Branch: master Commit: 394839fecfd09301f011a9af37910fe0985b0131 URL: http://source.winehq.org/git/wine.git/?a=commit;h=394839fecfd09301f011a9af37...
Author: Damjan Jovanovic damjan.jov@gmail.com Date: Thu Mar 25 16:24:09 2010 +0200
include: Define IoGetCurrentIrpStackLocation based on NONAMELESSUNION and NONAMELESSSTRUCT.
---
include/ddk/wdm.h | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index 95a27a8..102dda8 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -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