aboutsummaryrefslogtreecommitdiff
path: root/src/survive.c
diff options
context:
space:
mode:
authorCNLohr <lohr85@gmail.com>2017-03-15 00:14:37 -0400
committerCNLohr <lohr85@gmail.com>2017-03-15 00:14:37 -0400
commite15459cd9efab607e95f720bd971d0e73615f437 (patch)
tree15e04f94b93b743c40ed914588480e334b536c81 /src/survive.c
parent99b615ba75f24e48b713e9b23ae596d7ddf1c59b (diff)
downloadlibsurvive-e15459cd9efab607e95f720bd971d0e73615f437.tar.gz
libsurvive-e15459cd9efab607e95f720bd971d0e73615f437.tar.bz2
Getting very close to a Windows port.
Diffstat (limited to 'src/survive.c')
-rwxr-xr-xsrc/survive.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/survive.c b/src/survive.c
index 0e567ad..1b5bed1 100755
--- a/src/survive.c
+++ b/src/survive.c
@@ -14,7 +14,6 @@
static int did_runtime_symnum;
int SymnumCheck( const char * path, const char * name, void * location, long size )
{
- printf( "--->%s\n", name );
if( strncmp( name, "REGISTER", 8 ) == 0 )
{
typedef void (*sf)();
@@ -41,7 +40,11 @@ static void survivenote( struct SurviveContext * ctx, const char * fault )
SurviveContext * survive_init( int headless )
{
#ifdef RUNTIME_SYMNUM
- EnumerateSymbols( SymnumCheck );
+ if( !did_runtime_symnum )
+ {
+ EnumerateSymbols( SymnumCheck );
+ did_runtime_symnum = 1;
+ }
#endif
int r = 0;