ExernUtil was broken.

This commit is contained in:
Ianos Gnatiuc 2007-01-08 14:07:01 +00:00
parent 18d26cabfc
commit 8cdbb0f937
4 changed files with 7 additions and 18 deletions

View File

@ -26,9 +26,10 @@
#include <golded.h>
#include <gutlos.h>
#if defined(_MSC_VER) && defined(_DEBUG) && defined(_M_IX86)
#include <memleak.h>
#if defined(_MSC_VER) && defined(_DEBUG)
static struct LeakFinder
{
LeakFinder()

View File

@ -638,9 +638,9 @@ int ExternUtil(GMsg *msg, uint32_t utilno)
std::vector<ExtUtil>::iterator it = CFG->externutil.begin();
std::vector<ExtUtil>::iterator end = CFG->externutil.end();
for (uint32_t i = 0; it != end; i++, it++)
for (; it != end; it++)
{
if (it->utilno != i) continue;
if (it->utilno != utilno) continue;
return ExternUtil(msg, *it);
}

View File

@ -21,7 +21,7 @@
#define __STACKWALKER_H__
// Only valid in the following environment: Intel platform, MS VC++ 5/6/7/7.1/8
#ifndef _X86_
#if !defined(_M_IX86)
#error Only INTEL envirnoments are supported!
#endif

View File

@ -979,22 +979,9 @@
<File
RelativePath="..\goldlib\gall\memleak.cpp"
>
<FileConfiguration
Name="Debug|Win32"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Debug|x64"
>
<Tool
Name="VCCLCompilerTool"
/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"
@ -1002,6 +989,7 @@
</FileConfiguration>
<FileConfiguration
Name="Release|x64"
ExcludedFromBuild="true"
>
<Tool
Name="VCCLCompilerTool"