From cb9e70d5f73c7b012bf0806e806ed87ebc8423d1 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 15 Oct 2014 22:44:26 +0000 Subject: [PATCH] [RunTmChk] Fix a typo, remove a spare int 3, add file headers with BSD license svn path=/trunk/; revision=64758 --- reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S | 8 ++++++-- reactos/lib/sdk/RunTmChk/rtcapi.c | 8 +++++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S b/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S index a88aa333829..76640b34c56 100644 --- a/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S +++ b/reactos/lib/sdk/RunTmChk/i386/_RTC_CheckEsp.S @@ -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 (timo.kreuzer@reactos.org) + */ #include .code @@ -32,7 +37,6 @@ __RTC_CheckEsp: push dword ptr [esp + 4] // retaddr call __RTC_Failure add esp, 8 - int 3 popa pop ebp diff --git a/reactos/lib/sdk/RunTmChk/rtcapi.c b/reactos/lib/sdk/RunTmChk/rtcapi.c index 5f75880320d..7829451dd94 100644 --- a/reactos/lib/sdk/RunTmChk/rtcapi.c +++ b/reactos/lib/sdk/RunTmChk/rtcapi.c @@ -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 (timo.kreuzer@reactos.org) + */ #include @@ -53,7 +59,7 @@ _RTC_CheckStackVars( 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();