diff options
Diffstat (limited to 'src/modules/langpack/langpack.cpp')
-rw-r--r-- | src/modules/langpack/langpack.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/modules/langpack/langpack.cpp b/src/modules/langpack/langpack.cpp index 71b0dddaf9..aaa02ec52c 100644 --- a/src/modules/langpack/langpack.cpp +++ b/src/modules/langpack/langpack.cpp @@ -449,16 +449,12 @@ TCHAR* LangPackPcharToTchar( const char* pszStr ) if ( pszStr == NULL )
return NULL;
- #if defined( _UNICODE )
{ int len = (int)strlen( pszStr );
TCHAR* result = ( TCHAR* )alloca(( len+1 )*sizeof( TCHAR ));
MultiByteToWideChar( LangPackGetDefaultCodePage(), 0, pszStr, -1, result, len );
result[len] = 0;
return mir_wstrdup( TranslateW( result ));
}
- #else
- return mir_strdup( Translate( pszStr ));
- #endif
}
/////////////////////////////////////////////////////////////////////////////////////////
|