summaryrefslogtreecommitdiff
path: root/Dbx_mmap_SA/Dbtool/modulechain.cpp
diff options
context:
space:
mode:
authormataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-12-03 17:47:07 +0000
committermataes2007 <mataes2007@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-12-03 17:47:07 +0000
commit534fea9b2d46ddbe51b3841f2ca6af2e468f5c00 (patch)
tree450c080d226f53cd1bfc8e100eacfdf84a45504e /Dbx_mmap_SA/Dbtool/modulechain.cpp
parent331bd873e62c59d7e188eb7054c5abd46eeba15a (diff)
Dbx_mmap_SA:
fixed options page showing Dbtool: fixed dbtool starting fixed version info git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@237 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'Dbx_mmap_SA/Dbtool/modulechain.cpp')
-rw-r--r--Dbx_mmap_SA/Dbtool/modulechain.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/Dbx_mmap_SA/Dbtool/modulechain.cpp b/Dbx_mmap_SA/Dbtool/modulechain.cpp
index 6e150f7..515ec9b 100644
--- a/Dbx_mmap_SA/Dbtool/modulechain.cpp
+++ b/Dbx_mmap_SA/Dbtool/modulechain.cpp
@@ -96,7 +96,17 @@ int WorkModuleChain(int firstTime)
modChain[i].ofsNew = modChain[iCurrentModName].ofsNew;
n++;
}
- if (n) AddToStatus(STATUS_WARNING,TranslateT("Module name '%s' is not unique: %d duplicates found)"), modChain[iCurrentModName].name,n);
+ if (n) {
+ TCHAR *pszModuleName;
+#ifdef UNICODE
+ TCHAR szModuleName[257];
+ MultiByteToWideChar(CP_ACP, 0, modChain[iCurrentModName].name, -1, szModuleName, sizeof(szModuleName) / sizeof(TCHAR));
+ pszModuleName = szModuleName;
+#else
+ pszModuleName = modChain[iCurrentModName].name;
+#endif
+ AddToStatus(STATUS_WARNING,TranslateT("Module name '%s' is not unique: %d duplicates found)"), pszModuleName, n);
+ }
}
if(iCurrentModName==0)
dbhdr.ofsFirstModuleName=modChain[iCurrentModName].ofsNew;