From: <ma...@us...> - 2002-08-30 19:12:45
|
Update of /cvsroot/decaldev/source/Decal In directory usw-pr-cvs1:/tmp/cvs-serv22778 Modified Files: ACHooks.cpp Log Message: Make sure memlocs are present before trying to unhook Index: ACHooks.cpp =================================================================== RCS file: /cvsroot/decaldev/source/Decal/ACHooks.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** ACHooks.cpp 30 Aug 2002 10:48:17 -0000 1.17 --- ACHooks.cpp 30 Aug 2002 19:12:42 -0000 1.18 *************** *** 302,307 **** cACHooks::~cACHooks() { - s_pACHooks = NULL; - long Val, lCall1 = 0, lCall2 = 0; if( QueryMemLoc( _bstr_t( "ObjectDestroyed_Call1"), &Val ) == S_OK ) --- 302,305 ---- *************** *** 315,320 **** } ! HookCall( lCall1, g_lObjectDestroyedProc ); ! HookCall( lCall2, g_lObjectDestroyedProc ); g_lObjectDestroyedProc = 0; --- 313,323 ---- } ! if (lCall1 && lCall2) ! { ! HookCall( lCall1, g_lObjectDestroyedProc ); ! HookCall( lCall2, g_lObjectDestroyedProc ); ! } ! ! s_pACHooks = NULL; g_lObjectDestroyedProc = 0; |