mirror of
https://github.com/reactos/reactos.git
synced 2025-01-05 22:12:46 +00:00
[RunTmChk]
Fix a typo, remove a spare int 3, add file headers with BSD license svn path=/trunk/; revision=64758
This commit is contained in:
parent
75c6300b37
commit
cb9e70d5f7
2 changed files with 13 additions and 3 deletions
|
@ -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 <asm.inc>
|
||||
.code
|
||||
|
@ -32,7 +37,6 @@ __RTC_CheckEsp:
|
|||
push dword ptr [esp + 4] // retaddr
|
||||
call __RTC_Failure
|
||||
add esp, 8
|
||||
int 3
|
||||
|
||||
popa
|
||||
pop ebp
|
||||
|
|
|
@ -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 <rtcapi.h>
|
||||
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue