include: Define IoSkipCurrentIrpStackLocation. (v3)
Aric Stewart
aric at codeweavers.com
Wed Oct 12 23:24:45 CDT 2016
Signed-off-by: Aric Stewart <aric at codeweavers.com>
On 10/12/16 6:01 PM, Sebastian Lackner wrote:
> 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
>
>
More information about the wine-patches
mailing list