ExernUtil was broken.
This commit is contained in:
parent
18d26cabfc
commit
8cdbb0f937
@ -26,9 +26,10 @@
|
|||||||
|
|
||||||
#include <golded.h>
|
#include <golded.h>
|
||||||
#include <gutlos.h>
|
#include <gutlos.h>
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && defined(_DEBUG) && defined(_M_IX86)
|
||||||
#include <memleak.h>
|
#include <memleak.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER) && defined(_DEBUG)
|
|
||||||
static struct LeakFinder
|
static struct LeakFinder
|
||||||
{
|
{
|
||||||
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 it = CFG->externutil.begin();
|
||||||
std::vector<ExtUtil>::iterator end = CFG->externutil.end();
|
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);
|
return ExternUtil(msg, *it);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
#define __STACKWALKER_H__
|
#define __STACKWALKER_H__
|
||||||
|
|
||||||
// Only valid in the following environment: Intel platform, MS VC++ 5/6/7/7.1/8
|
// 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!
|
#error Only INTEL envirnoments are supported!
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -979,22 +979,9 @@
|
|||||||
<File
|
<File
|
||||||
RelativePath="..\goldlib\gall\memleak.cpp"
|
RelativePath="..\goldlib\gall\memleak.cpp"
|
||||||
>
|
>
|
||||||
<FileConfiguration
|
|
||||||
Name="Debug|Win32"
|
|
||||||
>
|
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
Name="Debug|x64"
|
Name="Debug|x64"
|
||||||
>
|
ExcludedFromBuild="true"
|
||||||
<Tool
|
|
||||||
Name="VCCLCompilerTool"
|
|
||||||
/>
|
|
||||||
</FileConfiguration>
|
|
||||||
<FileConfiguration
|
|
||||||
Name="Release|Win32"
|
|
||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
@ -1002,6 +989,7 @@
|
|||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
<FileConfiguration
|
<FileConfiguration
|
||||||
Name="Release|x64"
|
Name="Release|x64"
|
||||||
|
ExcludedFromBuild="true"
|
||||||
>
|
>
|
||||||
<Tool
|
<Tool
|
||||||
Name="VCCLCompilerTool"
|
Name="VCCLCompilerTool"
|
||||||
|
Reference in New Issue
Block a user