diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-14 18:00:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-14 18:00:48 +0000 |
commit | 8f3c8599fb3034b20c5c6934c2fc9676a13d0b8f (patch) | |
tree | 579642b4f16bbcd8dcdd3954c008188815dedb0b /src/modules/clist/genmenu.cpp | |
parent | 37e1f0cb88e2344c288064b7d88963ba7ea26955 (diff) |
quick fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@413 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist/genmenu.cpp')
-rw-r--r-- | src/modules/clist/genmenu.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/clist/genmenu.cpp b/src/modules/clist/genmenu.cpp index e0fc7b34e3..e981d8e8c7 100644 --- a/src/modules/clist/genmenu.cpp +++ b/src/modules/clist/genmenu.cpp @@ -726,14 +726,10 @@ PMO_IntMenuItem MO_AddOldNewMenuItem( HANDLE menuobjecthandle, PMO_MenuItem pmi }
else { // no, search for needed root and create it if need
TCHAR* tszRoot;
-#if defined( _UNICODE )
if ( pmi->flags & CMIF_UNICODE )
- tszRoot = mir_tstrdup(TranslateTS(( TCHAR* )pmi->root ));
+ tszRoot = mir_tstrdup(( TCHAR* )pmi->root );
else
- tszRoot = LangPackPcharToTchar(( char* )pmi->root );
-#else
- tszRoot = mir_tstrdup(TranslateTS(( TCHAR* )pmi->root ));
-#endif
+ tszRoot = mir_a2t(( char* )pmi->root );
PMO_IntMenuItem oldroot = MO_RecursiveWalkMenu( g_menus[objidx]->m_items.first, FindRoot, tszRoot );
mir_free( tszRoot );
|