summaryrefslogtreecommitdiff
path: root/src/modules/history
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-15 14:13:45 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-15 14:13:45 +0000
commit4aa6229698b946e52ce19018aaf13f8b92fb168e (patch)
tree29334e8c5ee492a80f11a97fedab2373b8fbb392 /src/modules/history
parent5e8e561a80d1ac9ca1c2f1c3d388105733ed4e4e (diff)
another portion of "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@426 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/history')
-rw-r--r--src/modules/history/history.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/modules/history/history.cpp b/src/modules/history/history.cpp
index ee3f039624..ccaf14fab0 100644
--- a/src/modules/history/history.cpp
+++ b/src/modules/history/history.cpp
@@ -93,11 +93,7 @@ static void GetUrlDescription( DBEVENTINFO *dbei, TCHAR* buf, int cbBuf )
if ( len >= cbBuf )
len = cbBuf-1;
- #if !defined( _UNICODE )
- memcpy( buf, dbei->pBlob, len );
- #else
- MultiByteToWideChar( CP_ACP, 0, ( LPCSTR )dbei->pBlob, len, buf, cbBuf );
- #endif
+ MultiByteToWideChar( CP_ACP, 0, ( LPCSTR )dbei->pBlob, len, buf, cbBuf );
buf[ len ] = 0;
if ( len < cbBuf-3 )
@@ -110,11 +106,7 @@ static void GetFileDescription( DBEVENTINFO *dbei, TCHAR* buf, int cbBuf )
if ( len >= cbBuf )
len = cbBuf-1;
- #if !defined( _UNICODE )
- memcpy( buf, dbei->pBlob + sizeof( DWORD ), len );
- #else
- MultiByteToWideChar( CP_ACP, 0, ( LPCSTR )dbei->pBlob + sizeof( DWORD ), len, buf, cbBuf );
- #endif
+ MultiByteToWideChar( CP_ACP, 0, ( LPCSTR )dbei->pBlob + sizeof( DWORD ), len, buf, cbBuf );
buf[ len ] = 0;
if ( len < cbBuf-3 )