summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-12-04 05:25:37 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-12-04 05:25:37 +0000
commit683ffe511660bd92f67117076c3c63f1bf3c3ff0 (patch)
treee57e2b65e7d01d05b957d49f2f5e78bea209dcaf /plugins
parent1e286906b0d8ea5d633721dff7093a6f6a154f11 (diff)
Translation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@2633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AssocMgr/src/reg.cpp16
-rw-r--r--plugins/AssocMgr/src/test.cpp4
2 files changed, 10 insertions, 10 deletions
diff --git a/plugins/AssocMgr/src/reg.cpp b/plugins/AssocMgr/src/reg.cpp
index 92451a52d3..042b0da119 100644
--- a/plugins/AssocMgr/src/reg.cpp
+++ b/plugins/AssocMgr/src/reg.cpp
@@ -24,16 +24,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifdef _DEBUG
/* Debug: Ensure all registry calls do succeed and have valid parameters.
* Shows a details message box otherwise. */
-static __inline LONG regchk(LONG res,const char *pszFunc,const void *pszInfo,BOOL fInfoUnicode,const char *pszFile,unsigned int nLine)
+static __inline LONG regchk(LONG res, const char *pszFunc, const void *pszInfo, BOOL fInfoUnicode, const char *pszFile, unsigned int nLine)
{
- if(res!=ERROR_SUCCESS && res!=ERROR_FILE_NOT_FOUND && res!=ERROR_NO_MORE_ITEMS) {
- TCHAR szMsg[1024],*pszInfo2;
+ if(res != ERROR_SUCCESS && res != ERROR_FILE_NOT_FOUND && res != ERROR_NO_MORE_ITEMS) {
+ TCHAR szMsg[1024], *pszInfo2;
char *pszErr;
- pszErr=GetWinErrorDescription(res);
- pszInfo2=s2t(pszInfo,fInfoUnicode,FALSE); /* does NULL check */
- mir_sntprintf(szMsg,SIZEOF(szMsg),_T("Access failed:\n%.64hs(%.128s)\n%.250hs(%u)\n%.256hs (%u)"),pszFunc,pszInfo2,pszFile,nLine,pszErr,res);
- MessageBox(NULL,szMsg,_T("Registry Warning"),MB_OK|MB_ICONINFORMATION|MB_SETFOREGROUND|MB_TOPMOST|MB_TASKMODAL);
- if(pszErr!=NULL) LocalFree(pszErr);
+ pszErr = GetWinErrorDescription(res);
+ pszInfo2 = s2t(pszInfo, fInfoUnicode, FALSE); /* does NULL check */
+ mir_sntprintf(szMsg, SIZEOF(szMsg), TranslateT("Access failed:\n%.64hs(%.128s)\n%.250hs(%u)\n%.256hs (%u)"), pszFunc, pszInfo2, pszFile, nLine, pszErr, res);
+ MessageBox(NULL, szMsg, TranslateT("Registry Warning"), MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND | MB_TOPMOST | MB_TASKMODAL);
+ if(pszErr != NULL) LocalFree(pszErr);
mir_free(pszInfo2); /* does NULL check */
}
return res;
diff --git a/plugins/AssocMgr/src/test.cpp b/plugins/AssocMgr/src/test.cpp
index db39e995f6..2bf0149d52 100644
--- a/plugins/AssocMgr/src/test.cpp
+++ b/plugins/AssocMgr/src/test.cpp
@@ -812,10 +812,10 @@ int JabberLinksUninit()
/*
static HANDLE hServiceTest;
-static int TestingService(WPARAM wParam,LPARAM lParam)
+static int TestingService(WPARAM wParam, LPARAM lParam)
{
UNREFERENCED_PARAMETER(wParam);
- MessageBoxEx(NULL,(TCHAR*)lParam,_T("Testing Service"),MB_OK|MB_SETFOREGROUND|MB_TOPMOST|MB_TASKMODAL,LANGIDFROMLCID((LCID)CallService(MS_LANGPACK_GETLOCALE,0,0)));
+ MessageBoxEx(NULL, (TCHAR*)lParam, TranslateT("Testing Service"), MB_OK | MB_SETFOREGROUND | MB_TOPMOST | MB_TASKMODAL, LANGIDFROMLCID((LCID)CallService(MS_LANGPACK_GETLOCALE, 0, 0)));
return 0;
}
*/