|
From: <no...@us...> - 2003-07-24 21:59:08
|
Log Message:
-----------
Bugfix: Old injection checkbox not working
Modified Files:
--------------
/cvsroot/decaldev/source/DenAgent:
OptionsDlg.cpp
Revision Data
-------------
Index: OptionsDlg.cpp
===================================================================
RCS file: /cvsroot/decaldev/source/DenAgent/OptionsDlg.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- OptionsDlg.cpp 20 Jun 2003 06:41:19 -0000 1.19
+++ OptionsDlg.cpp 24 Jul 2003 21:59:07 -0000 1.20
@@ -276,19 +276,29 @@
// cbt hook injection
DWORD dwViewMode = 0;
- if(::SendMessage(GetDlgItem(IDC_OLDINJECT)->m_hWnd, BM_GETCHECK, 0, 0))
+ if( ::SendMessage(GetDlgItem(IDC_OLDINJECT)->m_hWnd, BM_GETCHECK, 0, 0) )
{
- if( key.QueryDWORDValue( "OldInjection", dwViewMode )== ERROR_SUCCESS )
+ MessageBox( "GotCheck", "DA", MB_OK );
+ if( key.QueryDWORDValue( "OldInjection", dwViewMode ) == ERROR_SUCCESS )
+ {
if( dwViewMode != 1 )
{
key.SetDWORDValue("OldInjection", 0x1L);
MessageBox( "You must restart DenAgent for this option to take effect!", "DenAgent", MB_OK );
}
+ }
+
+ else
+ {
+ key.SetDWORDValue("OldInjection", 0x1L);
+ MessageBox( "You must restart DenAgent for this option to take effect!", "DenAgent", MB_OK );
+ }
}
else
{
- if( key.QueryDWORDValue( "OldInjection", dwViewMode )== ERROR_SUCCESS )
+ MessageBox( "NoCheck", "DA", MB_OK );
+ if( key.QueryDWORDValue( "OldInjection", dwViewMode ) == ERROR_SUCCESS )
if( dwViewMode != 0 )
{
key.SetDWORDValue("OldInjection", 0x0L);
|