From 5fde806e8b554ea0aa9a19e70e4eb902964952eb Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sat, 24 Jan 2009 00:59:37 +0000 Subject: [PATCH] add ExceptionRecordTo64 macro that copies the exception excord on win64, and calls ExceptionRecord32To64 on win32 svn path=/branches/ros-amd64-bringup/; revision=39055 --- reactos/include/reactos/windbgkd.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/reactos/include/reactos/windbgkd.h b/reactos/include/reactos/windbgkd.h index e72055062f0..d62675c5a03 100644 --- a/reactos/include/reactos/windbgkd.h +++ b/reactos/include/reactos/windbgkd.h @@ -865,4 +865,12 @@ ExceptionRecord32To64(IN PEXCEPTION_RECORD32 Ex32, } } +#ifdef _WIN64 +#define ExceptionRecordTo64(Ex, Ex64) \ + (*(Ex64)) = (*(PEXCEPTION_RECORD64)(Ex)) +#else +#define ExceptionRecordTo64(Ex, Ex64) \ + ExceptionRecord32To64((PEXCEPTION_RECORD32)Ex, Ex64) +#endif + #endif