From: Jeffrey D. <ha...@us...> - 2003-09-13 02:33:37
|
Log Message: ----------- talk to the hand... Modified Files: -------------- /cvsroot/decaldev/source/Decal: ACHooks.cpp Revision Data ------------- Index: ACHooks.cpp =================================================================== RCS file: /cvsroot/decaldev/source/Decal/ACHooks.cpp,v retrieving revision 1.65 retrieving revision 1.66 diff -u -d -r1.65 -r1.66 --- ACHooks.cpp 9 Sep 2003 03:08:31 -0000 1.65 +++ ACHooks.cpp 13 Sep 2003 02:33:02 -0000 1.66 @@ -2167,7 +2167,11 @@ if( !m_bIdleLoc ) return S_FALSE; + DWORD dwOldProtect = 0; + DWORD dwNewProtect = PAGE_READWRITE; + VirtualProtect( reinterpret_cast< void * >( m_lIdleLoc ), 8 /* sizeof double */, dwNewProtect, &dwOldProtect ); *( reinterpret_cast< double * >( m_lIdleLoc ) ) = dIdleTimeout; + VirtualProtect( reinterpret_cast< void * >( m_lIdleLoc ), 8 /* sizeof double */, dwOldProtect, &dwNewProtect ); return S_OK; } |