ExernUtil was broken.
This commit is contained in:
parent
18d26cabfc
commit
8cdbb0f937
@ -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()
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Reference in New Issue
Block a user