[ros-diffs] [tkreuzer] 37493: fix amd64 / ia64 default definition of RtlGetCallersAddress

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Fri Nov 21 00:25:10 CET 2008


Author: tkreuzer
Date: Thu Nov 20 17:25:09 2008
New Revision: 37493

URL: http://svn.reactos.org/svn/reactos?rev=37493&view=rev
Log:
fix amd64 / ia64 default definition of RtlGetCallersAddress

Modified:
    branches/ros-amd64-bringup/reactos/include/ddk/winddk.h

Modified: branches/ros-amd64-bringup/reactos/include/ddk/winddk.h
URL: http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/include/ddk/winddk.h?rev=37493&r1=37492&r2=37493&view=diff
==============================================================================
--- branches/ros-amd64-bringup/reactos/include/ddk/winddk.h [iso-8859-1] (original)
+++ branches/ros-amd64-bringup/reactos/include/ddk/winddk.h [iso-8859-1] Thu Nov 20 17:25:09 2008
@@ -6696,12 +6696,18 @@
 RtlFreeUnicodeString(
   IN PUNICODE_STRING  UnicodeString);
 
+#if (defined(_M_AMD64) || defined(_M_IA64)) && !defined(_REALLY_GET_CALLERS_CALLER_)
+#define RtlGetCallersAddress(CallersAddress, CallersCaller) \
+    *CallersAddress = (PVOID)_ReturnAddress(); \
+    *CallersCaller = NULL;
+#else
 NTSYSAPI
 VOID
 NTAPI
 RtlGetCallersAddress(
   OUT PVOID  *CallersAddress,
   OUT PVOID  *CallersCaller);
+#endif
 
 NTSYSAPI
 NTSTATUS



More information about the Ros-diffs mailing list