Author: tkreuzer
Date: Wed Oct 15 22:44:26 2014
New Revision: 64758

URL: http://svn.reactos.org/svn/reactos?rev=64758&view=rev
Log:
[RunTmChk]
Fix a typo, remove a spare int 3, add file headers with BSD license

Modified:
    trunk/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S
    trunk/reactos/lib/sdk/RunTmChk/rtcapi.c

Modified: trunk/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S?rev=64758&r1=64757&r2=64758&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S [iso-8859-1] Wed Oct 15 
22:44:26 2014
@@ -1,4 +1,9 @@
-
+/*
+ * PROJECT:         MSVC runtime check support library
+ * LICENSE:         BSD - See COPYING.ARM in the top level directory
+ * PURPOSE:         Provides support functions for MSVC runtime checks
+ * PROGRAMMER:      Timo Kreuzer ([email protected])
+ */
 
 #include <asm.inc>
 .code
@@ -32,7 +37,6 @@
     push dword ptr [esp + 4] // retaddr
     call __RTC_Failure
     add esp, 8
-    int 3
 
     popa
     pop ebp

Modified: trunk/reactos/lib/sdk/RunTmChk/rtcapi.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/RunTmChk/rtcapi.c?rev=64758&r1=64757&r2=64758&view=diff
==============================================================================
--- trunk/reactos/lib/sdk/RunTmChk/rtcapi.c     [iso-8859-1] (original)
+++ trunk/reactos/lib/sdk/RunTmChk/rtcapi.c     [iso-8859-1] Wed Oct 15 
22:44:26 2014
@@ -1,3 +1,9 @@
+/*
+ * PROJECT:         MSVC runtime check support library
+ * LICENSE:         BSD - See COPYING.ARM in the top level directory
+ * PURPOSE:         Provides support functions for MSVC runtime checks
+ * PROGRAMMER:      Timo Kreuzer ([email protected])
+ */
 
 #include <rtcapi.h>
 
@@ -53,7 +59,7 @@
         guard2 = (int*)((char*)_Esp + _Fd->variables[i].addr 
+_Fd->variables[i].size);
 
         /* Check if they contain the guard bytes */
-        if ((*guard1 != 0xCCCCCCCC) || (*guard1 != 0xCCCCCCCC))
+        if ((*guard1 != 0xCCCCCCCC) || (*guard2 != 0xCCCCCCCC))
         {
             DbgPrint("Stack corruption near '%s'\n", _Fd->variables[i].name);
             __debugbreak();


Reply via email to