[1/2] wdm.h: fix IoGetCurrentIrpStackLocation when NONAMELESSUNION is defined (try 2)
Damjan Jovanovic
damjan.jov at gmail.com
Tue Mar 23 13:23:56 CDT 2010
Changelog:
* wdm.h: fix IoGetCurrentIrpStackLocation when NONAMELESSUNION is defined
Damjan Jovanovic
-------------- next part --------------
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 95a27a8..c791b8f 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1021,7 +1021,11 @@ typedef enum _MM_SYSTEM_SIZE
NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle);
+#ifdef NONAMELESSUNION
+#define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.s.u2.CurrentStackLocation)
+#else
#define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation)
+#endif
#define KernelMode 0
#define UserMode 1
More information about the wine-patches
mailing list