[ros-diffs] [sginsberg] 41513: - Define noreturn attribute for KeBugCheckWithTf and KiBugCheckDebugBreak in a msvc compatible way

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Sun Jun 21 19:06:35 CEST 2009


Author: sginsberg
Date: Sun Jun 21 21:06:34 2009
New Revision: 41513

URL: http://svn.reactos.org/svn/reactos?rev=41513&view=rev
Log:
- Define noreturn attribute for KeBugCheckWithTf and KiBugCheckDebugBreak in a msvc compatible way

Modified:
    trunk/reactos/ntoskrnl/include/internal/ke.h
    trunk/reactos/ntoskrnl/ke/bug.c

Modified: trunk/reactos/ntoskrnl/include/internal/ke.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/ke.h?rev=41513&r1=41512&r2=41513&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ke.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/ke.h [iso-8859-1] Sun Jun 21 21:06:34 2009
@@ -790,6 +790,7 @@
     IN OUT PCONTEXT Context
 );
 
+DECLSPEC_NORETURN
 VOID
 NTAPI
 KeBugCheckWithTf(

Modified: trunk/reactos/ntoskrnl/ke/bug.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/bug.c?rev=41513&r1=41512&r2=41513&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ke/bug.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/bug.c [iso-8859-1] Sun Jun 21 21:06:34 2009
@@ -546,9 +546,9 @@
     }
 }
 
+DECLSPEC_NORETURN
 VOID
 NTAPI
-__declspec(noreturn)
 KiBugCheckDebugBreak(IN ULONG StatusCode)
 {
     /* If KDBG isn't connected, freeze the CPU, otherwise, break */
@@ -751,7 +751,6 @@
 
 VOID
 NTAPI
-__declspec(noreturn)
 KeBugCheckWithTf(IN ULONG BugCheckCode,
                  IN ULONG_PTR BugCheckParameter1,
                  IN ULONG_PTR BugCheckParameter2,



More information about the Ros-diffs mailing list