ARRAYLEN
This commit is contained in:
@@ -158,7 +158,7 @@ static Bignum rsa_privkey_op(Bignum input, const RSAKey *key)
|
|||||||
* Conceptually the following few lines are equivalent to
|
* Conceptually the following few lines are equivalent to
|
||||||
* byte = random_byte();
|
* byte = random_byte();
|
||||||
*/
|
*/
|
||||||
if (digestused >= ARRAYSIZE(digest512)) {
|
if (digestused >= ARRAYLEN(digest512)) {
|
||||||
unsigned char seqbuf[4];
|
unsigned char seqbuf[4];
|
||||||
PUT_32BIT(seqbuf, hashseq);
|
PUT_32BIT(seqbuf, hashseq);
|
||||||
SHA512_Init(&ss);
|
SHA512_Init(&ss);
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ BOOL MainMenuDlg::OnInitDialog()
|
|||||||
//DialogUtil::SetDlgItemHeader( *this, IDC_STATIC_HEADER_TEXT, "header" );
|
//DialogUtil::SetDlgItemHeader( *this, IDC_STATIC_HEADER_TEXT, "header" );
|
||||||
|
|
||||||
TCHAR szCurDir[MAX_PATH];
|
TCHAR szCurDir[MAX_PATH];
|
||||||
GetCurrentDirectory( ARRAYSIZE(szCurDir), szCurDir );
|
GetCurrentDirectory( ARRAYLEN(szCurDir), szCurDir );
|
||||||
GetDlgItem( IDC_EDIT_INSTALLATION )->SetWindowText( szCurDir );
|
GetDlgItem( IDC_EDIT_INSTALLATION )->SetWindowText( szCurDir );
|
||||||
|
|
||||||
return TRUE; // return TRUE unless you set the focus to a control
|
return TRUE; // return TRUE unless you set the focus to a control
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ BOOL CSmpackageApp::InitInstance()
|
|||||||
|
|
||||||
|
|
||||||
TCHAR szCurrentDirectory[MAX_PATH];
|
TCHAR szCurrentDirectory[MAX_PATH];
|
||||||
GetCurrentDirectory( ARRAYSIZE(szCurrentDirectory), szCurrentDirectory );
|
GetCurrentDirectory( ARRAYLEN(szCurrentDirectory), szCurrentDirectory );
|
||||||
if( CAN_INSTALL_PACKAGES && SMPackageUtil::IsValidInstallDir(szCurrentDirectory) )
|
if( CAN_INSTALL_PACKAGES && SMPackageUtil::IsValidInstallDir(szCurrentDirectory) )
|
||||||
{
|
{
|
||||||
SMPackageUtil::AddGameInstallDir( szCurrentDirectory ); // add this if it doesn't already exist
|
SMPackageUtil::AddGameInstallDir( szCurrentDirectory ); // add this if it doesn't already exist
|
||||||
|
|||||||
Reference in New Issue
Block a user