diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-15 18:52:16 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-06-15 18:52:16 +0000 |
commit | 58973a21a30bf95427fd43c456e41e35c386218c (patch) | |
tree | 1413fba069ecd351b2c99fa5a53e52c68d8a662c /plugins/Dbx_mmap_SA/Import_SA | |
parent | 55b5cf8a5506f03350e5c80ac86f5717425e4d10 (diff) |
another portion of "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@434 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mmap_SA/Import_SA')
-rw-r--r-- | plugins/Dbx_mmap_SA/Import_SA/encryption.c | 7 | ||||
-rw-r--r-- | plugins/Dbx_mmap_SA/Import_SA/progress.c | 5 |
2 files changed, 2 insertions, 10 deletions
diff --git a/plugins/Dbx_mmap_SA/Import_SA/encryption.c b/plugins/Dbx_mmap_SA/Import_SA/encryption.c index f261581041..ede73c006a 100644 --- a/plugins/Dbx_mmap_SA/Import_SA/encryption.c +++ b/plugins/Dbx_mmap_SA/Import_SA/encryption.c @@ -93,16 +93,11 @@ void InitSecurity() _snprintf(buf,SIZEOF(buf),"%d.%d.%d.%d", HIBYTE(HIWORD(Modules[ModulesCount]->cryptor->Version)), LOBYTE(HIWORD(Modules[ModulesCount]->cryptor->Version)), HIBYTE(LOWORD(Modules[ModulesCount]->cryptor->Version)), LOBYTE(LOWORD(Modules[ModulesCount]->cryptor->Version)));
// Unsane: none
/*
-#ifdef _UNICODE
+
mbstowcs(Name, Modules[ModulesCount]->cryptor->Name, 100);
mbstowcs(Version, buf, 100);
mbstowcs(DllName, Modules[ModulesCount]->dllname, 100);
-#else
- strcpy(Name, Modules[ModulesCount]->cryptor->Name);
- strcpy(Version, buf);
- strcpy(DllName, Modules[ModulesCount]->dllname);
-#endif
*/
AddMessage(LPGEN("Cryptor loaded: %s [%s] (%s)"), Modules[ModulesCount]->cryptor->Name, buf, Modules[ModulesCount]->dllname);
diff --git a/plugins/Dbx_mmap_SA/Import_SA/progress.c b/plugins/Dbx_mmap_SA/Import_SA/progress.c index 1417868947..f3f4e9f08a 100644 --- a/plugins/Dbx_mmap_SA/Import_SA/progress.c +++ b/plugins/Dbx_mmap_SA/Import_SA/progress.c @@ -92,12 +92,9 @@ void AddMessage( const char* fmt, ... ) }
#endif
- #if defined( _UNICODE )
+
{ TCHAR* str = mir_a2t( msgBuf );
SendMessage( hdlgProgress, PROGM_ADDMESSAGE, 0, ( LPARAM )str );
mir_free( str );
}
- #else
- SendMessage( hdlgProgress, PROGM_ADDMESSAGE, 0, ( LPARAM )msgBuf );
- #endif
}
|