From 5744176211848f8941f3ce77d18ddd024f633a91 Mon Sep 17 00:00:00 2001 From: Pavol Marko Date: Mon, 3 Oct 2005 17:39:40 +0000 Subject: [PATCH] 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 --- sourcehook/test/test1.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sourcehook/test/test1.cpp b/sourcehook/test/test1.cpp index 33c6dda..925d3a5 100644 --- a/sourcehook/test/test1.cpp +++ b/sourcehook/test/test1.cpp @@ -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(&error), sizeof(error)))); ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(0, 1))); - ADD_STATE(State_ModuleInMemory(SourceHook::ModuleInMemory(reinterpret_cast(&error), - (reinterpret_cast(-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;