KeyGenerator 2.6i1 :

- Opt2 portato da 24 a 32 bit.
This commit is contained in:
Dario Sassi
2024-09-20 12:41:22 +02:00
parent 52cde6d275
commit a87f87ade6
3 changed files with 2 additions and 2 deletions
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -350,7 +350,7 @@ CKeyGeneratorDlg::LoadFile( const char* szFile)
((CButton*)GetDlgItem( i))->SetCheck( BST_UNCHECKED) ;
}
int nOpt2 = GetPrivateProfileInt( sSec.c_str(), "Opt2", 0, szFile) ;
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_24 ; ++ i, ++ j) {
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_32 ; ++ i, ++ j) {
if ( ( nOpt2 & ( 1 << j)) != 0)
((CButton*)GetDlgItem( i))->SetCheck( BST_CHECKED) ;
else
@@ -432,7 +432,7 @@ CKeyGeneratorDlg::OnGenerate( void)
nOpt1 += ( 1 << j) ;
}
unsigned int nOpt2 = 0 ;
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_24 ; ++ i, ++ j) {
for ( int i = IDC_CHECK2_01, j = 0 ; i <= IDC_CHECK2_32 ; ++ i, ++ j) {
if ( ((CButton*)GetDlgItem( i))->GetCheck() == BST_CHECKED)
nOpt2 += ( 1 << j) ;
}
BIN
View File
Binary file not shown.