mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-20 13:54:14 +01:00
Got rid of ^M ( ! )
Removed the weirdest ModuleInMemory test which was causing it to fail on amd64 --HG-- extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40119
This commit is contained in:
parent
2790931701
commit
5744176211
@ -388,20 +388,15 @@ namespace
|
||||
|
||||
bool TestBasic(std::string &error)
|
||||
{
|
||||
|
||||
// Simple test for ModuleInMemory:
|
||||
// Simple test for ModuleInMemory
|
||||
// 1) &error should on the stack
|
||||
// 2) 0 should not be mapped
|
||||
// 3) &error to -1 should not be mapped
|
||||
ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(reinterpret_cast<char*>(&error), sizeof(error))));
|
||||
ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(0, 1)));
|
||||
ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(reinterpret_cast<char*>(&error),
|
||||
(reinterpret_cast<std::string*>(-1) - &error) - 1)));
|
||||
|
||||
CHECK_STATES((&g_States,
|
||||
new State_ModuleInMemory(true),
|
||||
new State_ModuleInMemory(false),
|
||||
new State_ModuleInMemory(false),
|
||||
NULL), "ModuleInMemory");
|
||||
|
||||
SourceHook::CSourceHookImpl g_SHImpl;
|
||||
|
Loading…
x
Reference in New Issue
Block a user