include: Define IoSkipCurrentIrpStackLocation. (v3)

Sebastian Lackner sebastian at fds-team.de
Wed Oct 12 11:01:55 CDT 2016


From: Aric Stewart <aric at codeweavers.com>

Signed-off-by: Aric Stewart <aric at codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---

Changes in v3:
* Remove unnecessary ().

 include/ddk/wdm.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 5602f7d..74251fc 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1175,17 +1175,21 @@ NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle);
 # ifdef NONAMELESSSTRUCT
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.u2.CurrentStackLocation)
 #  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.u2.CurrentStackLocation - 1)
+#  define IoSkipCurrentIrpStackLocation(_Irp) {(_Irp)->Tail.Overlay.s.u2.CurrentStackLocation++; (_Irp)->CurrentLocation++;}
 # else
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.u2.CurrentStackLocation)
 #  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.u2.CurrentStackLocation - 1)
+#  define IoSkipCurrentIrpStackLocation(_Irp) {(_Irp)->Tail.Overlay.u2.CurrentStackLocation++; (_Irp)->CurrentLocation++;}
 # endif
 #else
 # ifdef NONAMELESSSTRUCT
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.CurrentStackLocation)
 #  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.CurrentStackLocation - 1)
+#  define IoSkipCurrentIrpStackLocation(_Irp) {(_Irp)->Tail.Overlay.s.CurrentStackLocation++; (_Irp)->CurrentLocation++;}
 # else
 #  define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation)
 #  define IoGetNextIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation - 1)
+#  define IoSkipCurrentIrpStackLocation(_Irp) {(_Irp)->Tail.Overlay.CurrentStackLocation++; (_Irp)->CurrentLocation++;}
 # endif
 #endif
 
-- 
2.9.0



More information about the wine-patches mailing list