Damjan Jovanovic : wdm.h: Define IoGetNextIrpStackLocation.

Alexandre Julliard julliard at winehq.org
Mon Apr 12 09:54:07 CDT 2010


Module: wine
Branch: master
Commit: e54d029f8886a721b36f2c6c37cd3adf8da53b20
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e54d029f8886a721b36f2c6c37cd3adf8da53b20

Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date:   Sat Apr 10 17:17:07 2010 +0200

wdm.h: Define IoGetNextIrpStackLocation.

---

 include/ddk/wdm.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 102dda8..b086ef7 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1024,14 +1024,18 @@ NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle);
 #ifdef NONAMELESSUNION
 # ifdef NONAMELESSSTRUCT
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.u2.CurrentStackLocation)
+#  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.u2.CurrentStackLocation - 1)
 # else
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.u2.CurrentStackLocation)
+#  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.u2.CurrentStackLocation - 1)
 # endif
 #else
 # ifdef NONAMELESSSTRUCT
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.CurrentStackLocation)
+#  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.CurrentStackLocation - 1)
 # else
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation)
+#  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation - 1)
 # endif
 #endif
 




More information about the wine-cvs mailing list