From: Jeffrey D. <ha...@us...> - 2003-08-30 23:55:25
|
Log Message: ----------- It's still lane's fault Modified Files: -------------- /cvsroot/decaldev/source/DecalNet: NetService.cpp Revision Data ------------- Index: NetService.cpp =================================================================== RCS file: /cvsroot/decaldev/source/DecalNet/NetService.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- NetService.cpp 30 Aug 2003 23:21:18 -0000 1.12 +++ NetService.cpp 30 Aug 2003 23:54:41 -0000 1.13 @@ -9,7 +9,8 @@ #include "FilterAdapterV1.h" -//#define _OUTGOING_PACKETS_ +#define _OUTGOING_PACKETS_ +//#define _LOGGING extern DWORD HookCall (DWORD dwCallAddress, DWORD dwReplacement); extern void PacketComplete (); @@ -52,8 +53,6 @@ g_lPacketCompleteCallLocation = 0; // just in case. hookFunctions( _hooks, 2, true ); - - hookFunctions( _hooks, 2, true ); if( _hooks[ 0 ].m_pOldFunction != 0 ) g_fn_recvfrom = reinterpret_cast< fn_recvfrom >( _hooks[ 0 ].m_pOldFunction ); else if( _hooks[ 1 ].m_pOldFunction != 0 ) @@ -72,8 +71,7 @@ _ASSERTE( false ); #endif - if( !g_lPacketCompleteCallLocation ) - m_stack.start( this ); + m_stack.start( this ); // Start all of the network filters { @@ -144,18 +142,17 @@ m_filters.clear(); - if( !g_lPacketCompleteCallLocation ) - m_stack.stop(); + m_stack.stop(); if( g_pService == this ) { - if (g_lPacketCompleteCallLocation) +#ifdef _OUTGOING_PACKETS_ + hookFunctions( _hooksOut, 1, false ); +#endif + if( g_lPacketCompleteCallLocation ) HookCall( g_lPacketCompleteCallLocation, g_lPacketCompleteProc ); else - { hookFunctions( _hooks, 2, false ); - hookFunctions( _hooksOut, 1, false ); - } g_pService = NULL; } |