summaryrefslogtreecommitdiff
path: root/plugins/CryptoPP/commonheaders.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-02 20:55:18 +0000
commit78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch)
tree8512c50df70b8dd80c919e88ade3419207c95956 /plugins/CryptoPP/commonheaders.cpp
parentce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff)
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/CryptoPP/commonheaders.cpp')
-rw-r--r--plugins/CryptoPP/commonheaders.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/CryptoPP/commonheaders.cpp b/plugins/CryptoPP/commonheaders.cpp
index 4ba0c995fa..e518aecb11 100644
--- a/plugins/CryptoPP/commonheaders.cpp
+++ b/plugins/CryptoPP/commonheaders.cpp
@@ -51,13 +51,13 @@ BOOL ExtractFileFromResource( HANDLE FH, int ResType, int ResId, DWORD* Size )
RH = FindResource( g_hInst, MAKEINTRESOURCE( ResId ), MAKEINTRESOURCE( ResType ) );
- if( RH == NULL ) return FALSE;
+ if ( RH == NULL ) return FALSE;
RP = (PBYTE) LoadResource( g_hInst, RH );
- if( RP == NULL ) return FALSE;
+ if ( RP == NULL ) return FALSE;
s = SizeofResource( g_hInst, RH );
- if( !WriteFile( FH, RP, s, &x, NULL ) ) return FALSE;
- if( x != s ) return FALSE;
- if( Size ) *Size = s;
+ if ( !WriteFile( FH, RP, s, &x, NULL ) ) return FALSE;
+ if ( x != s ) return FALSE;
+ if ( Size ) *Size = s;
return TRUE;
}
@@ -66,7 +66,7 @@ void ExtractFile( char *FileName, int ResType, int ResId )
{
HANDLE FH;
FH = CreateFile( FileName, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL );
- if( FH == INVALID_HANDLE_VALUE ) return;
+ if ( FH == INVALID_HANDLE_VALUE ) return;
if (!ExtractFileFromResource( FH, ResType, ResId, NULL )) MessageBoxA(0,"Can't extract","!!!",MB_OK);
CloseHandle( FH );
}
@@ -78,7 +78,7 @@ int rtrim(LPCSTR str) {
while( len ) {
char c = *ptr;
- if( c != '\x20' && c != '\x09' && c != '\x0A' && c != '\x0D' ) {
+ if ( c != '\x20' && c != '\x09' && c != '\x0A' && c != '\x0D' ) {
*(ptr+1) = '\0';
break;
}